Merge Caffe2 and PyTorch thread pool definitions (#14114)
authorJames Sun <jamessun@fb.com>
Thu, 29 Nov 2018 02:05:10 +0000 (18:05 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 29 Nov 2018 02:10:20 +0000 (18:10 -0800)
commit186341c5dc55ab1e90f397622165a4f06bab8901
tree57c942eeb9bdd8a7e555a8a6c457a2b6f5e0fe2f
parent533668d7e482ec5a88aaa274027de9cbefad5632
Merge Caffe2 and PyTorch thread pool definitions (#14114)

Summary:
(1) Move Caffe2 thread pool to aten
(2) Use the same thread pool definition for PyTorch interpreter
(3) Make ivalue::Future thread-safe
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14114

Reviewed By: ilia-cher

Differential Revision: D13110451

Pulled By: highker

fbshipit-source-id: a83acb6a4bafb7f674e3fe3d58f7a74c68064fac
aten/src/ATen/core/ivalue.h
aten/src/ATen/core/thread_pool.cpp
aten/src/ATen/core/thread_pool.h
caffe2/utils/thread_pool.h
caffe2/video/video_input_op.h
torch/csrc/jit/interpreter.cpp
torch/csrc/jit/register_prim_ops.cpp