diff --git a/egs/wenetspeech/ASR/pruned_transducer_stateless5/train.py b/egs/wenetspeech/ASR/pruned_transducer_stateless5/train.py index 7d09acc39..5a5925d55 100755 --- a/egs/wenetspeech/ASR/pruned_transducer_stateless5/train.py +++ b/egs/wenetspeech/ASR/pruned_transducer_stateless5/train.py @@ -1144,8 +1144,6 @@ def display_and_save_batch( y = graph_compiler.texts_to_ids(texts) if type(y) == list: y = k2.RaggedTensor(y) - else: - y = y num_tokens = sum(len(i) for i in y) logging.info(f"num tokens: {num_tokens}")