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

RuntimeError: Legacy autograd function #126

Open
nasaweimao opened this issue Jan 23, 2021 · 1 comment
Open

RuntimeError: Legacy autograd function #126

nasaweimao opened this issue Jan 23, 2021 · 1 comment

Comments

@nasaweimao
Copy link

当我用pytorch1.7版本的gpu来跑这个程序的时候,老报下面的错误,请问怎么解决?
File "/data/miniconda3/lib/python3.7/site-packages/torch/autograd/function.py", line 160, in call

45 |   | "Legacy autograd function with non-static forward method is deprecated. "
46 |   | RuntimeError: Legacy autograd function with non-static forward method is deprecated. Please use new-style autograd function with static forward method. (Example: https://pytorch.org/docs/stable/autograd.html#torch.autograd.Function)

@mbilalshaikh
Copy link

same error with me during feature extraction.

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

2 participants