Skip to content
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

Open
cxq1 opened this issue Mar 25, 2022 · 5 comments
Open

cannot import name '_LinearWithBias' from 'torch.nn.modules.linear' #18

cxq1 opened this issue Mar 25, 2022 · 5 comments

Comments

@cxq1
Copy link

cxq1 commented Mar 25, 2022

cannot import name '_LinearWithBias' from 'torch.nn.modules.linear'

@DeppMeng
Copy link
Collaborator

DeppMeng commented Apr 1, 2022

It is possibly caused by incompatible PyTorch version. Which PyTorch version do you use?

@cxq1
Copy link
Author

cxq1 commented Apr 1, 2022

It is possibly caused by incompatible PyTorch version. Which PyTorch version do you use?

'1.10.1

@DeppMeng
Copy link
Collaborator

DeppMeng commented Apr 1, 2022

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.

@Li-Qingyun
Copy link

@DeppMeng Is there an extra 's' on the line 30 of models/attention.py ? _LinearWithBiass or _LinearWithBias ?

@DeppMeng
Copy link
Collaborator

@Li-Qingyun Thank you for pointing out, the issue is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants