We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi In the file of modules/attention.py, the class MultiHeadAttention(nn.MultiheadAttention) is reported an error:
class MultiHeadAttention(nn.MultiheadAttention): AttributeError: module 'torch.nn' has no attribute 'MultiheadAttention'
I use the pytorch=0.4.1. Is there any version of torch that containing the nn.MultiheadAttention?
The text was updated successfully, but these errors were encountered:
Upgrade to PyTorch 1.3 can solve this problem.
Sorry, something went wrong.
No branches or pull requests
Hi
In the file of modules/attention.py, the class MultiHeadAttention(nn.MultiheadAttention) is reported an error:
class MultiHeadAttention(nn.MultiheadAttention):
AttributeError: module 'torch.nn' has no attribute 'MultiheadAttention'
I use the pytorch=0.4.1. Is there any version of torch that containing the nn.MultiheadAttention?
The text was updated successfully, but these errors were encountered: