Files
pytorch/torch/csrc/deploy
Edward Yang 6409d34482 Sort glob of files to ensure it is deterministic (#55850)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55850

ghstack-source-id: 126339587

Test Plan: diff on top builds successfully on Sandcastle

Reviewed By: wconstab

Differential Revision: D27722254

fbshipit-source-id: 181ae1a874dbfc73688dcc5b7e9264d79abd44d3
2021-04-19 09:50:13 -07:00
..
2021-03-30 13:09:52 -07:00

Torch Deploy

This is an experimental feature to embed multiple python interpreters inside the torch library, providing a solution to the 'GIL problem' for multithreading with the convenience of python and eager or torchscripted pytorch programs.

libinterpreter

This is an internal library used behind the scenes to enable multiple python interpreters in a single deploy runtime. libinterpreter.so is DLOPENed multiple times by the deploy library. Each copy of libinterpreter exposes a simple interpreter interface but hides its python and other internal symbols, preventing the different python instances from seeing each other.