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

How to run the codes on a computer with a nvidia 3090 and pytorch 1.7.1 #8

Open
weihancug opened this issue Jan 6, 2021 · 1 comment

Comments

@weihancug
Copy link

weihancug commented Jan 6, 2021

Hello, there is a newly computer in my office, which is equipped with a nvidia GPU 3090. Therefore, Cuda 11 and Pytorch 1.7.1 are supported in this computer. We try to configure the environment and run the model, but we encounter such a problem,

"Legacy autograd function with non-static forward method is deprecated. "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)

Do you know how to address the problem?
Thanks for your time and kind assistance.

@hnsywangxin
Copy link

Hello, there is a newly computer in my office, which is equipped with a nvidia GPU 3090. Therefore, Cuda 11 and Pytorch 1.7.1 are supported in this computer. We try to configure the environment and run the model, but we encounter such a problem,

"Legacy autograd function with non-static forward method is deprecated. "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)

Do you know how to address the problem?
Thanks for your time and kind assistance.

hello, I have the same problem. I have solved it by this:
change the line 252 of "im2col.py" which is located in "/usr/local/lib/python3.6/dist-packages/pyinn/im2col.py"
Col2Im(kernel_size, stride, padding)(input) toCol2Im(kernel_size, stride, padding).forward(input)
and the line 244:
Im2Col(kernel_size, stride, padding)(input) to Im2Col(kernel_size, stride, padding).forward(input)

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