Back out "Revert D26077905: Back out "Revert D25850783: Add torch::deploy, an embedded torch-python interpreter"" (#51267)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51267

Original commit changeset: b70185916502

Test Plan: test locally, oss ci-all, fbcode incl deferred

Reviewed By: suo

Differential Revision: D26121251

fbshipit-source-id: 4315b7fd5476914c8e5d6f547e1cfbcf0c227781
This commit is contained in:
Will Constable
2021-01-28 19:27:29 -08:00
committed by Facebook GitHub Bot
parent e7b3496232
commit f2e41257e4
25 changed files with 1027 additions and 14 deletions

View File

@ -713,6 +713,8 @@ extern "C"
#ifdef _WIN32
__declspec(dllexport)
#endif
TORCH_API PyObject* initModule();
// separate decl and defn for msvc error C2491
PyObject* initModule() {
HANDLE_TH_ERRORS
at::internal::lazy_init_num_threads();