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

‘’Legacy autograd function with non-static forward method is deprecated.” on Pytorch 1.5 #41

Open
Lucky666123 opened this issue Jul 5, 2020 · 2 comments

Comments

@Lucky666123
Copy link

When I use this function on Pytorch 1.5, there is an error like that :

RuntimeError: Legacy autograd function with non-static forward method is deprecated. Please use new-sty le autograd function with static forward method. (Example: https://pytorch.org/docs/stable/autograd.htm l#torch.autograd.Function)

But there exists @staticmethod before forward and backward function. Did anyone encounter this problem?How to solve it?

@Aegis923
Copy link

Hello, I meet the same problem , did you solve it?

@zhuyalou
Copy link

Hello,I meet the same problem , did you solve it?

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