0

My project was originally able to run successfully, but it suddenly stopped running today and reported an error with the wrong version:

RuntimeError: Expected PyTorch version 1.4 but found version 2.0.

I am trying to change the torch version

  • after update the version,there are many other error,such as " ModuleNotFoundError: No module named 'torch.profiler' " – cornelia Apr 09 '23 at 06:54

1 Answers1

0

You can try conda install -c pytorch pytorch=1.4 to downgrade the PyTorch version from the command line. You can also check here for managing package versions with pip.