pytorch
23088fcf - disable src mask for transformer and multiheadattention fastpath (#81277)

Commit
3 years ago
disable src mask for transformer and multiheadattention fastpath (#81277) Disable fastpath if src_mask passed to TransformerEncoderLayer and MultiheadAttention. - Refactored test_transformerencoder from test_nn.py to test_transformers.py. Added a src_mask test there. - Added a specific src_mask test in test_transformers.py Fixes https://github.com/pytorch/pytorch/issues/81129 Pull Request resolved: https://github.com/pytorch/pytorch/pull/81277 Approved by: https://github.com/zrphercule
Author
Committer
Parents
Loading