onnxruntime/objectivec
Vrajang Parikh fd8ad9b950
Enable iOS packaging for training (#16525)
### Description
Enable support for building iOS packages/CocoaPods with training API

- Add `Training` Package variant and config files in current iOS
packaging utilities to enable creation of training packages

### Motivation and Context
This PR introduces new `Training` variant in
`build_and_assemble_ios_pods.py` script which allows creating pods for
iOS with training API enabled.

The sample script to build training pods:

```
python3 tools/ci_build/github/apple/build_and_assemble_ios_pods.py --variant Training \
--build-settings-file  tools/ci_build/github/apple/default_full_ios_training_framework_build_settings.json \ 
-b=-- path_to_protoc_exe=<path/to/protoc>
``` 

Note: build settings file should have `--enable_training` as a build
parameter.


Simply adding training packaging increases the duration of the Azure
pipeline for packaging by 70 minutes. To address this issue, we need to
parallelize pod creation. In order not to further strain the pipeline,
the changes for training packaging will be added in another PR, which
optimizes the packaging pipeline.

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-07-05 13:27:59 -07:00
..
docs Add workflow to update Objective-C docs. (#15413) 2023-04-07 15:00:15 -07:00
include Enable iOS packaging for training (#16525) 2023-07-05 13:27:59 -07:00
test Enable iOS packaging for training (#16525) 2023-07-05 13:27:59 -07:00
assert_arc_enabled.mm Add iOS Swift Package Manager support (#15297) 2023-04-20 16:18:35 +10:00
cxx_api.h Enable iOS packaging for training (#16525) 2023-07-05 13:27:59 -07:00
cxx_utils.h Objective C Training API: TrainingSession (#16374) 2023-06-28 09:13:56 -07:00
cxx_utils.mm [objc] Fix possible leak of OrtValue in initializer. (#16487) 2023-06-29 17:37:16 -07:00
error_utils.h Objective-C binding for ORT training (#16127) 2023-06-07 14:01:30 -07:00
error_utils.mm Objective-C binding for ORT training (#16127) 2023-06-07 14:01:30 -07:00
format_objc.sh [Objective-C API] Fixes from package testing and clean up (#7866) 2021-05-27 19:36:50 -07:00
ort_checkpoint.mm Enable iOS packaging for training (#16525) 2023-07-05 13:27:59 -07:00
ort_checkpoint_internal.h Enable iOS packaging for training (#16525) 2023-07-05 13:27:59 -07:00
ort_coreml_execution_provider.mm Add iOS Swift Package Manager support (#15297) 2023-04-20 16:18:35 +10:00
ort_enums.mm Add iOS Swift Package Manager support (#15297) 2023-04-20 16:18:35 +10:00
ort_enums_internal.h Add iOS Swift Package Manager support (#15297) 2023-04-20 16:18:35 +10:00
ort_env.mm Treat Objective-C static analysis warnings as errors (#16293) 2023-06-09 08:51:49 -07:00
ort_env_internal.h Add iOS Swift Package Manager support (#15297) 2023-04-20 16:18:35 +10:00
ort_session.mm [objc] Fix possible leak of OrtValue in initializer. (#16487) 2023-06-29 17:37:16 -07:00
ort_session_internal.h Add iOS Swift Package Manager support (#15297) 2023-04-20 16:18:35 +10:00
ort_training_session.mm Enable iOS packaging for training (#16525) 2023-07-05 13:27:59 -07:00
ort_training_session_internal.h Enable iOS packaging for training (#16525) 2023-07-05 13:27:59 -07:00
ort_value.mm [objc] Fix possible leak of OrtValue in initializer. (#16487) 2023-06-29 17:37:16 -07:00
ort_value_internal.h [objc] Fix possible leak of OrtValue in initializer. (#16487) 2023-06-29 17:37:16 -07:00
ort_xnnpack_execution_provider.mm Add iOS Swift Package Manager support (#15297) 2023-04-20 16:18:35 +10:00
ReadMe.md Add iOS Swift Package Manager support (#15297) 2023-04-20 16:18:35 +10:00

NOTE: Flat directory structure to work with both the Objective-C build and the Swift Package Manager build which is done via ../Package.swift