Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parameter (facebookresearch#3045)
Summary: # Before submitting - [ ] Was this discussed/approved via a Github issue? (no need for typos, doc improvements) - [x] Did you read the [contributor guideline](https://github.com/pytorch/fairseq/blob/master/CONTRIBUTING.md)? - [x] Did you make sure to update the docs? - [x] Did you write any new necessary tests? ## What does this PR do? `src_lengths` is not a required parameter in `TransformerEncoder`. It is a dummy variable. Maybe more changes should be done to fix this issue in Class such as `Transformer`, `FairseqEncoderDecoderModel`, `BARTModel` etc. ## Did you have fun? Make sure you had fun coding � Pull Request resolved: facebookresearch#3045 Reviewed By: ngoyal2707 Differential Revision: D25632992 Pulled By: myleott fbshipit-source-id: 762d595144b611e1a6c236248d7001049afed0ab
- Loading branch information