mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
change for pruned rnnt5 train.py (#519)
This commit is contained in:
parent
36eacaccb2
commit
e538232485
@ -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}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user