mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
a66a1fcae0
commit
9374e5d07e
Binary file not shown.
@ -415,9 +415,10 @@ def decode_one_batch(
|
|||||||
return {key: hyps}
|
return {key: hyps}
|
||||||
|
|
||||||
if params.method == "greedy-search":
|
if params.method == "greedy-search":
|
||||||
|
memory, memory_key_padding_mask
|
||||||
att_loss = model.decoder_forward(
|
att_loss = model.decoder_forward(
|
||||||
encoder_memory,
|
memory,
|
||||||
memory_mask,
|
momory_key_padding_mask,
|
||||||
token_ids=unsorted_token_ids,
|
token_ids=unsorted_token_ids,
|
||||||
sos_id=graph_compiler.sos_id,
|
sos_id=graph_compiler.sos_id,
|
||||||
eos_id=graph_compiler.eos_id,
|
eos_id=graph_compiler.eos_id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user