[inference] moved ops tests to test_infer (#5354)

This commit is contained in:
Frank Lee
2024-02-02 13:51:22 +08:00
committed by GitHub
parent db1a763307
commit e76acbb076
9 changed files with 7 additions and 4 deletions

View File

@@ -63,6 +63,9 @@ def check_config_and_inference():
batch.add_seqs([sequence])
batch.add_seqs([sequence2, sequence3])
# add duplicated sequence to test that it will not be counted twice
batch.add_seqs([sequence])
assert batch.is_empty == False
assert batch.get_batch_size() == 3
batch.update_batch_tokens([1, 2, 3])