You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the decode function of the Decoder.py, when calculating the length, I think there are some issues. To be more specific,
update_idx = ((lengths > step) & eos_batches) != 0
lengths[update_idx] = len(sequence_symbols)
the update_idx would return [0,1,0,1,.....] sequence not the index that are nonzero
I think it should be update_idx = np.nonzero((lengths > step) & eos_batches)
Can you check this part? I'm not pretty sure that I'm correct.
Appreciate.
The text was updated successfully, but these errors were encountered:
In the decode function of the Decoder.py, when calculating the length, I think there are some issues. To be more specific,
update_idx = ((lengths > step) & eos_batches) != 0
lengths[update_idx] = len(sequence_symbols)
the update_idx would return [0,1,0,1,.....] sequence not the index that are nonzero
I think it should be update_idx = np.nonzero((lengths > step) & eos_batches)
Can you check this part? I'm not pretty sure that I'm correct.
Appreciate.
The text was updated successfully, but these errors were encountered: