from local

This commit is contained in:
dohe0342 2023-02-02 18:50:57 +09:00
parent 7892a0a5a6
commit 3fc8d0f230
3 changed files with 3 additions and 2 deletions

View File

@ -262,8 +262,9 @@ def decode_one_batch(
'''
if params.method == 'greedy-search' or params.method == 'ctc-decoding':
print(nnet_output.size())
exit()
batch_size = nnet_output.size(0)
for i in range(batch_size):
print(nnet_output[i].topk(1))
if params.method == "ctc-decoding":
best_path = one_best_decoding(