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

关于实验环境版本问题 #1

Open
1392081456 opened this issue Nov 7, 2022 · 3 comments
Open

关于实验环境版本问题 #1

1392081456 opened this issue Nov 7, 2022 · 3 comments

Comments

@1392081456
Copy link

作者您好,请问这篇文章的实验环境是什么样的呢? pytorch 和python主要是在哪个版本呢? 我使用第一条命令运行
python3 train_scratch.py --dataset=mnist --epoch=200时,出现了:
ImportError: cannot import name 'zero_gradients' from 'torch.autograd.gradcheck'
这个错误, 应该是pytorch版本的问题,请问有详细配置吗? 感谢!

@fasadi
Copy link

fasadi commented Feb 28, 2023

作者您好,请问这篇文章的实验环境是什么样的呢? pytorch 和python主要是在哪个版本呢? 我使用第一条命令运行 python3 train_scratch.py --dataset=mnist --epoch=200时,出现了: ImportError: cannot import name 'zero_gradients' from 'torch.autograd.gradcheck' 这个错误, 应该是pytorch版本的问题,请问有详细配置吗? 感谢!

I have the same problem. did you fix this problem??

@1392081456
Copy link
Author

作者您好,请问这篇文章的实验环境是什么样的呢? pytorch 和python主要是在哪个版本呢? 我使用第一条命令运行 python3 train_scratch.py --dataset=mnist --epoch=200时,出现了: ImportError: cannot import name 'zero_gradients' from 'torch.autograd.gradcheck' 这个错误, 应该是pytorch版本的问题,请问有详细配置吗? 感谢!

I have the same problem. did you fix this problem??

你可以看看这里:https://stackoverflow.com/questions/68419612/imorting-zero-gradients-from-torch-autograd-gradcheck

@1392081456
Copy link
Author

作者您好,请问这篇文章的实验环境是什么样的呢? pytorch 和python主要是在哪个版本呢? 我使用第一条命令运行 python3 train_scratch.py --dataset=mnist --epoch=200时,出现了: ImportError: cannot import name 'zero_gradients' from 'torch.autograd.gradcheck' 这个错误, 应该是pytorch版本的问题,请问有详细配置吗? 感谢!

I have the same problem. did you fix this problem??

或者看看这个:https://www.5axxw.com/questions/content/coc9gz

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