Skip to content

Commit 170f27c

Browse files
committed
Fix unit tests.
Signed-off-by: Daniel Galvez <dgalvez@nvidia.com>
1 parent e3225ec commit 170f27c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/collections/asr/test_asr_ctc_encoder_model_bpe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def test_vocab_change(self, test_data_dir, asr_model):
269269
def test_decoding_change(self, asr_model):
270270
assert asr_model.decoding is not None
271271
assert isinstance(asr_model.decoding, CTCBPEDecoding)
272-
assert asr_model.decoding.cfg.strategy == "greedy"
272+
assert asr_model.decoding.cfg.strategy == "greedy_batched"
273273
assert asr_model.decoding.preserve_alignments is False
274274
assert asr_model.decoding.compute_timestamps is False
275275

tests/collections/asr/test_asr_ctcencdec_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_vocab_change(self, asr_model):
150150
def test_decoding_change(self, asr_model):
151151
assert asr_model.decoding is not None
152152
assert isinstance(asr_model.decoding, CTCDecoding)
153-
assert asr_model.decoding.cfg.strategy == "greedy"
153+
assert asr_model.decoding.cfg.strategy == "greedy_batched"
154154
assert asr_model.decoding.preserve_alignments is False
155155
assert asr_model.decoding.compute_timestamps is False
156156

tests/collections/asr/test_asr_hybrid_rnnt_ctc_model_bpe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def test_decoding_change(self, hybrid_asr_model):
297297

298298
assert hybrid_asr_model.ctc_decoding is not None
299299
assert isinstance(hybrid_asr_model.ctc_decoding, CTCBPEDecoding)
300-
assert hybrid_asr_model.ctc_decoding.cfg.strategy == "greedy"
300+
assert hybrid_asr_model.ctc_decoding.cfg.strategy == "greedy_batched"
301301
assert hybrid_asr_model.ctc_decoding.preserve_alignments is False
302302
assert hybrid_asr_model.ctc_decoding.compute_timestamps is False
303303

tests/collections/asr/test_asr_hybrid_rnnt_ctc_model_char.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_decoding_change(self, hybrid_asr_model):
231231

232232
assert hybrid_asr_model.ctc_decoding is not None
233233
assert isinstance(hybrid_asr_model.ctc_decoding, CTCDecoding)
234-
assert hybrid_asr_model.ctc_decoding.cfg.strategy == "greedy"
234+
assert hybrid_asr_model.ctc_decoding.cfg.strategy == "greedy_batched"
235235
assert hybrid_asr_model.ctc_decoding.preserve_alignments is False
236236
assert hybrid_asr_model.ctc_decoding.compute_timestamps is False
237237

0 commit comments

Comments
 (0)