pytorch/torch/csrc/jit/api
Gaoxiang Liu 735f8cc6c2 [DI] Allow explicit taskLauncher for torchscript interpreter (#46865)
Summary:
By default, TorchScript execution is single threaded and uses the caller's thread pool. For the use case of distributed inference, we hope there is a way to customize the behavior where the  interpreter in torch script can be executed in other places. This diff allows an explicit taskLauncher for torchscript interpreter.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/46865

Test Plan:
unit test is passed.

fbshipit-source-id: 1d7b003926c0d1f8facc53206efb960cff8897ac

Fixes #{issue number}

Reviewed By: houseroad

Differential Revision: D24616102

Pulled By: garroud

fbshipit-source-id: 79202b62f92d0b0baf72e4bf7aa3f05e0da91d59
2020-11-04 17:07:55 -08:00
..
compilation_unit.h [JIT] Add property support to TorchScript classes (#42389) 2020-08-14 12:56:57 -07:00
function_impl.cpp [DI] Allow explicit taskLauncher for torchscript interpreter (#46865) 2020-11-04 17:07:55 -08:00
function_impl.h [DI] Allow explicit taskLauncher for torchscript interpreter (#46865) 2020-11-04 17:07:55 -08:00
method.h [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
module_save.cpp Get, save, and load module information for each operator (#42133) 2020-08-14 01:25:27 -07:00
module.cpp Run __setstate__ when cloning modules (#45858) 2020-10-16 15:55:31 -07:00
module.h Get, save, and load module information for each operator (#42133) 2020-08-14 01:25:27 -07:00
object.cpp [jit][api][refactor] remove redundant deepcopy implementation (#37538) 2020-05-06 15:41:33 -07:00
object.h [JIT] Make objects throw Python AttributeError on nonexistant attr access (#45911) 2020-10-07 01:57:29 -07:00