onnxruntime/orttraining/orttraining/python/training
Ashwini Khade cc7799835e
Enable a single build with optimized inference and on device training (#14241)
### Description
Right now prepacking code is not compiled when training is enabled. Our
partners want a single build of ort which can do both optimized
inference + training on device. This PR enables prepacking code in a
training build and controls whether it is enabled or not using already
existing session option - kOrtSessionOptionsConfigDisablePrepacking

For Inference scenarios - prepacking will be turned on by default and
this behavior remains the same after this PR too.
For training scenarios - prepacking will be disabled by default and if
user explicitly enables it then an error will be thrown.



### Motivation and Context
Enable both optimized inference as well as on device training in a
single build. For on device training use flag --enable_training_apis.
2023-01-12 21:36:43 -08:00
..
amp Format all python files under onnxruntime with black and isort (#11324) 2022-04-26 09:35:16 -07:00
api Refactor training build options (#13964) 2023-01-03 13:28:16 -08:00
experimental Make ORT callable from various Pytorch compilers (LazyTensor, TorchDynamo, etc) (#10460) 2022-08-22 09:40:40 -07:00
onnxblock Refactor training build options (#13964) 2023-01-03 13:28:16 -08:00
optim [ORTModule] Update Supported DeepSpeed Version for FP16_Optimizer (#13305) 2022-10-13 13:03:01 +08:00
ortmodule Enable a single build with optimized inference and on device training (#14241) 2023-01-12 21:36:43 -08:00
torchdynamo Improve DORT document (#13790) 2022-11-30 16:55:25 -08:00
utils/data Format all python files under onnxruntime with black and isort (#11324) 2022-04-26 09:35:16 -07:00
__init__.py [python] [orttraining] Add utility to export a graph to compute gradients (#8125) 2022-02-18 14:00:49 -08:00
_checkpoint_storage.py Format all python files under onnxruntime with black and isort (#11324) 2022-04-26 09:35:16 -07:00
_utils.py replace 'master' branch ref to 'main' for onnx repo (#12678) 2022-08-30 13:41:42 -07:00
checkpoint.py Format all python files under onnxruntime with black and isort (#11324) 2022-04-26 09:35:16 -07:00
model_desc_validation.py Format all python files under onnxruntime with black and isort (#11324) 2022-04-26 09:35:16 -07:00
orttrainer.py Deprecate ORTTrainer (#13022) 2022-09-23 18:10:09 -07:00
orttrainer_options.py Update ORTModule Default Opset Version to 15 (#12419) 2022-08-05 16:55:04 +08:00
postprocess.py Format all python files under onnxruntime with black and isort (#11324) 2022-04-26 09:35:16 -07:00