You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
这是在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
The text was updated successfully, but these errors were encountered:
这是在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
The text was updated successfully, but these errors were encountered: