-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
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
cannot import name '_LinearWithBias' from 'torch.nn.modules.linear' #18
Comments
It is possibly caused by incompatible PyTorch version. Which PyTorch version do you use? |
'1.10.1 |
We use PyTorch 1.7 to run all the experiments. I think PT 1.7.0-1.8.0 will be fine. PT 1.9+ are untested. |
@DeppMeng Is there an extra 's' on the line 30 of models/attention.py ? _LinearWithBiass or _LinearWithBias ? |
@Li-Qingyun Thank you for pointing out, the issue is fixed. |
cannot import name '_LinearWithBias' from 'torch.nn.modules.linear'
The text was updated successfully, but these errors were encountered: