my environment is CUDA10+python3.7+pytorch1.0.(because my INVIDIA only support CUDA10+)
Now I want run a demo code which is developed using pytorch0.3.1
How can I upgrade the demo code so that it can run in my environment?
Are there some code modification gudience?
I am a new user to pytorch.
Have a look at these breaking changes and the release notes.
In case you have trouble converting your code to the latest PyTorch version, please post in this board and we are happy to help.
Thank you very much！
for the package “torch.legacy.nn”, it has been removed,
and which class can replace it?
the current code is like this:
from torch.legacy.nn import SpatialCrossMapLRN as SpatialCrossMapLRNOld
just like : https://github.com/tzzcl/RNN-HA/blob/master/LRN.py