onnxruntime/onnxruntime/python
Thiago Crepaldi 83be3759bc
Add post-install command to build PyTorch CPP extensions from within onnxruntime package (#8027)
ORTModule requires two PyTorch CPP extensions that are currently JIT compiled. The runtime compilation can cause issues in some environments without all build requirements or in environments with multiple instances of ORTModule running in parallel

This PR creates a custom command to compile such extensions that must be manually executed before ORTModule is executed for the first time. When users try to use ORTModule before the extensions are compiled, an error with instructions are raised

PyTorch CPP Extensions for ORTModule can be compiled by running:
python -m onnxruntime.training.ortmodule.torch_cpp_extensions.install

Full build environment is needed for this
2021-06-28 18:11:58 -07:00
..
backend Enable python GPU tests (#7854) 2021-06-15 10:24:58 -07:00
datasets replace invalid sample (#4567) 2020-07-21 23:51:17 -07:00
tools Create a quantized EmbedLayerNorm for ORT. (#8124) 2021-06-25 17:51:43 -05:00
training Enable running PEP8 on python scripts using flake8 (#3928) 2020-05-15 07:15:06 +10:00
__init__.py Enable running PEP8 on python scripts using flake8 (#3928) 2020-05-15 07:15:06 +10:00
_ld_preload.py Enable running PEP8 on python scripts using flake8 (#3928) 2020-05-15 07:15:06 +10:00
_pybind_state.py Fix Python Cuda loading issues (#7939) 2021-06-25 02:26:50 -07:00
exported_symbols.lst
onnxruntime_collect_build_info.py Liqun/ort training version (#7620) 2021-05-14 09:54:19 -07:00
onnxruntime_inference_collection.py Don't hold onto unnecessary numpy references while binding numpy objectas as inputs (#7881) 2021-05-30 21:12:32 -07:00
onnxruntime_pybind_exceptions.cc Python bindings fix ups in preparation to Sparse Tensor introduction (#7817) 2021-05-26 09:47:41 -07:00
onnxruntime_pybind_exceptions.h Python bindings fix ups in preparation to Sparse Tensor introduction (#7817) 2021-05-26 09:47:41 -07:00
onnxruntime_pybind_iobinding.cc Python bindings fix ups in preparation to Sparse Tensor introduction (#7817) 2021-05-26 09:47:41 -07:00
onnxruntime_pybind_mlvalue.cc Fix Python Cuda loading issues (#7939) 2021-06-25 02:26:50 -07:00
onnxruntime_pybind_mlvalue.h Python bindings fix ups in preparation to Sparse Tensor introduction (#7817) 2021-05-26 09:47:41 -07:00
onnxruntime_pybind_module.cc decouple the python module construction from pybind_state (#8060) 2021-06-15 18:52:26 -07:00
onnxruntime_pybind_ortvalue.cc training with custom autograd Functions (#7513) 2021-06-07 13:01:21 -07:00
onnxruntime_pybind_state.cc Fix mac shared_provider warning (#8153) 2021-06-25 13:25:28 -07:00
onnxruntime_pybind_state_common.cc training with custom autograd Functions (#7513) 2021-06-07 13:01:21 -07:00
onnxruntime_pybind_state_common.h Fix Python Cuda loading issues (#7939) 2021-06-25 02:26:50 -07:00
onnxruntime_validation.py Add post-install command to build PyTorch CPP extensions from within onnxruntime package (#8027) 2021-06-28 18:11:58 -07:00
pybind.def
version_script.lds