Skip to content

Commit

Permalink
Fix unit tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Galvez <[email protected]>
  • Loading branch information
galv committed May 8, 2024
1 parent e3225ec commit 170f27c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/collections/asr/test_asr_ctc_encoder_model_bpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def test_vocab_change(self, test_data_dir, asr_model):
def test_decoding_change(self, asr_model):
assert asr_model.decoding is not None
assert isinstance(asr_model.decoding, CTCBPEDecoding)
assert asr_model.decoding.cfg.strategy == "greedy"
assert asr_model.decoding.cfg.strategy == "greedy_batched"
assert asr_model.decoding.preserve_alignments is False
assert asr_model.decoding.compute_timestamps is False

Expand Down
2 changes: 1 addition & 1 deletion tests/collections/asr/test_asr_ctcencdec_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_vocab_change(self, asr_model):
def test_decoding_change(self, asr_model):
assert asr_model.decoding is not None
assert isinstance(asr_model.decoding, CTCDecoding)
assert asr_model.decoding.cfg.strategy == "greedy"
assert asr_model.decoding.cfg.strategy == "greedy_batched"
assert asr_model.decoding.preserve_alignments is False
assert asr_model.decoding.compute_timestamps is False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def test_decoding_change(self, hybrid_asr_model):

assert hybrid_asr_model.ctc_decoding is not None
assert isinstance(hybrid_asr_model.ctc_decoding, CTCBPEDecoding)
assert hybrid_asr_model.ctc_decoding.cfg.strategy == "greedy"
assert hybrid_asr_model.ctc_decoding.cfg.strategy == "greedy_batched"
assert hybrid_asr_model.ctc_decoding.preserve_alignments is False
assert hybrid_asr_model.ctc_decoding.compute_timestamps is False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def test_decoding_change(self, hybrid_asr_model):

assert hybrid_asr_model.ctc_decoding is not None
assert isinstance(hybrid_asr_model.ctc_decoding, CTCDecoding)
assert hybrid_asr_model.ctc_decoding.cfg.strategy == "greedy"
assert hybrid_asr_model.ctc_decoding.cfg.strategy == "greedy_batched"
assert hybrid_asr_model.ctc_decoding.preserve_alignments is False
assert hybrid_asr_model.ctc_decoding.compute_timestamps is False

Expand Down

0 comments on commit 170f27c

Please sign in to comment.