Multiprocessing on CPU


Does multiprocessing works in CPU?

I need to predict 200 images (200x200) with CPU, but when I use multiprocessing to create some process the execution time don’t change (or the execution time increase).


PyTorch uses multiple threads in the default configuration, if you want PyTorch to only use one thread per process, you would want to disable that: