Multiprocessing on CPU

Hi!

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).

Thanks!

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:

https://pytorch.org/docs/stable/torch.html#parallelism