"docs/source/api/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "98c1117d00edd38d72610d6a87c0c8d706873863"
Make Fairseq compatible with pre-computed position tensors (#570)
Summary: Pull Request resolved: https://github.com/fairinternal/fairseq-py/pull/570 Pull Request resolved: https://github.com/pytorch/fairseq/pull/731 Currently the LearnedPositionalEmbedding module computes the position tensor based on the input data. However this really doesnt work for XLM where we have different behavior based on the Masked LM and Translation LM. In this diff I keep the same default behavior for LearnedPositionalEmbedding as before but add the ability for these models to work with pre-computed position tensors. Reviewed By: myleott Differential Revision: D15305474 fbshipit-source-id: de7d908245a2a620b58d36055211600a08f2d1dc
Showing
Please register or sign in to comment