Use torch.multiprocessing.Pool instead of torch.multiprocessing.pool.Pool; the latter is a definition for Python 3.3 and under, and loaded into torch.multiprocessing.Pool – as stated in torch/multiprocessing/__init__.py.