I am a beginner with PyTorch and started testing some codes.
The environment is Windows 10, Anaconda 3 and some required libraries have been installed, and then I am working on Spyder.
I am conflicting with an AttributeError in testing the sample program “mnist_hogwild” in “examples-master” folder in PyTorch. The error is as follows:
File “C:\USR\local\Anaconda3\lib\multiprocessing\spawn.py”, line 172, in get_preparation_data
main_mod_name = getattr(main_module.spec, “name”, None)
AttributeError: module ‘main’ has no attribute ‘spec’
Such an error also occurs when I run the program on the command prompt.
How can I resolve this issue? Thank you in advance