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

MNIST出现静态错误 #127

Open
YangNuoCheng opened this issue Oct 30, 2021 · 1 comment
Open

MNIST出现静态错误 #127

YangNuoCheng opened this issue Oct 30, 2021 · 1 comment

Comments

@YangNuoCheng
Copy link

这是在torch1.4之后的新要求,改变了torch.autograd.Function的调用方法,需要使用.apply来调用。
解决方法,在XNOR-Net-PyTorch-master\MNIST\models下的LeNet_5.py第53行改为 x = BinActive.apply(x)即可正常运行

change LeNet_5.py line53 to 'x = BinActive.apply(x)' to slove problem as following:
RuntimeError: Legacy autograd function with non-static forward method is deprecated

@pengzha0
Copy link

pengzha0 commented Jan 6, 2023

谢谢你

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