stefanonardo / pytorch-esn

An Echo State Network module for PyTorch.
MIT License
205 stars 43 forks source link

Multiprocessing on Windows #4

Closed ansegundo closed 5 years ago

ansegundo commented 5 years ago

Running mnist.py example throws a freeze_support() error.

On Windows all of your multiprocessing-using code must be guarded by:

if __name__ == "__main__":

source: https://stackoverflow.com/questions/24374288/where-to-put-freeze-support-in-a-python-script