torch.nn.TransformerEncoderLayer missing exception description information. #89394
Labels
module: error checking
Bugs related to incorrect/lacking error checking
module: nn
Related to torch.nn
oncall: transformer/mha
Issues related to Transformers and MultiheadAttention
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃悰 Describe the bug
When running this code, an AssertionError is thrown directly without giving effective information about the exception. The real error is that d_model is not equal to the third value in src. It is recommended to use the pytorch1.8.0 version. When this happens, throw Display the corresponding exception information.
Versions
pytorch: 1.8.0
Python version: 3.8
CUDA/cuDNN version: cuDNN 11.1
GPU models and configuration: RTX3060
Operating System锛歐indows
cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @saketh-are @bhosmer @cpuhrsch @erichan1
The text was updated successfully, but these errors were encountered: