change for streaming_beam_search.py
This commit is contained in:
parent
4bf839227c
commit
a5a7514ef0
@ -152,8 +152,6 @@ def modified_beam_search(
|
|||||||
index=hyps_shape.row_ids(1).to(torch.int64),
|
index=hyps_shape.row_ids(1).to(torch.int64),
|
||||||
) # (num_hyps, encoder_out_dim)
|
) # (num_hyps, encoder_out_dim)
|
||||||
|
|
||||||
print(decoder_out.shape)
|
|
||||||
print(current_encoder_out.shape)
|
|
||||||
logits = model.joiner(
|
logits = model.joiner(
|
||||||
current_encoder_out,
|
current_encoder_out,
|
||||||
decoder_out.unsqueeze(1),
|
decoder_out.unsqueeze(1),
|
||||||
|
|||||||
Reference in New Issue
Block a user