Port TH library to ATen/Parallel (#19105)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19105
ghimport-source-id: db3e26f89d098e86215c48e464ace615193f5772
Differential Revision: D14947557
Pulled By: ilia-cher
fbshipit-source-id: 7e987e74c034646ba818f02e7bd711aba2ee3364