onnxruntime/samples
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
..
c_cxx Create ORT opschema library (#7903) 2021-06-14 14:02:33 -07:00
c_sharp/OpenVINO_EP/yolov3_object_detection [OpenVINO-EP] Adding OpenVINO-EP samples to Msft Repo (#7826) 2021-05-28 08:35:41 -07:00
iOS Use relative path for HEADER_SEARCH_PATHS (#5412) 2020-10-08 23:06:11 -07:00
nodejs Add nodejs samples README (#5005) 2020-09-03 15:58:44 -07:00
python [OpenVINO-EP] Adding OpenVINO-EP samples to Msft Repo (#7826) 2021-05-28 08:35:41 -07:00
swift Add post-install command to build PyTorch CPP extensions from within onnxruntime package (#8027) 2021-06-28 18:11:58 -07:00
.gitignore Add iOS test pipeline and a sample app. (#5298) 2020-09-29 13:53:11 -07:00