pytorch
f8e71ca3 - Designate divice to generate_square_subsequent_mask (#85609)

Commit
2 years ago
Designate divice to generate_square_subsequent_mask (#85609) When the model is on GPU, generating the mask on defalut device(cpu) is quite time consuming. Pull Request resolved: https://github.com/pytorch/pytorch/pull/85609 Approved by: https://github.com/albanD
Author
Committer
Parents
Loading