fairseq/examples/simultaneous_translation
Sravya Popuri c6409c029d Fix issue with encoder padding mask
Summary:
- Fix issue with encoder padding mask
- Also add lengths as a field in encoder_out of encode_src method
- Add a conditional clause in transformer_monotonic_attention.py to handle the case where encoder_padding_mask is None

Reviewed By: jmp84

Differential Revision: D28080936

fbshipit-source-id: 99f78c5e3fe5644960ade44210ea78280ef53b8c
2021-04-28 23:23:11 -07:00
..
docs Update simultaneous translation docs (#1767) 2021-03-31 17:09:00 -07:00
eval/agents Update simultaneous translation docs (#1767) 2021-03-31 17:09:00 -07:00
models Fix issue with encoder padding mask 2021-04-28 23:23:11 -07:00
modules sorting os.listdir outputs to ensure consistent import ordering 2021-04-22 21:33:05 -07:00
utils sorting os.listdir outputs to ensure consistent import ordering 2021-04-22 21:33:05 -07:00
__init__.py Relocate simultaneous translation code (#1639) 2021-02-25 22:35:21 -08:00
README.md Update simultaneous translation docs (#1767) 2021-03-31 17:09:00 -07:00