onnxruntime/tools/ci_build/github/linux/ort_minimal
Scott McKay b7fde84341
Changes to support standalone custom ops in a minimal build. (#14497)
### Description
<!-- Describe your changes. -->
Changes to support standalone custom ops in a minimal build. Also
incorporates changes from #14492 (needed to test builds prior to that
being checked in).

We first need to save the schema info from the operators used by the
standalone op invoker in the ORT format model. Add mechanism for that.

Merge the kernel lookup logic so the same is used in full and minimal
build. NOTE: the version matching is now consistent with all other
kernel lookups, and the call to CreateOp MUST use the exact version for
the operator. Previously matching wasn't as strict, but this can lead to
the incorrect kernel being chosen.

Add tests.

NOTE: There is currently no way to detect the ops/types/opsets used
inside these custom ops as they don't exist until we create kernels,
which is after model loading completes (which is the point the ORT
format model is saved). Due to that they have to be manually added to
the configuration used to do the reduced ops build. That shouldn't be
too hard for the custom op author to add given the custom op
implementation is specifying the op, opset and type constraints (i.e.
they have the info and it's just a case of capturing/formatting it
correctly).


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Enable usage of the standalone op invoker by custom ops in a minimal
build.

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-03-01 11:22:54 +10:00
..
build_check_binsize_config Add build configuration to binary size checks pipeline. (#13208) 2022-10-05 12:39:19 -07:00
__init__.py Use readelf for minimal build binary size checks. (#6338) 2021-01-15 07:46:02 +10:00
build_full_ort_and_create_ort_files.sh Changes to support standalone custom ops in a minimal build. (#14497) 2023-03-01 11:22:54 +10:00
build_minimal_ort_and_run_tests.sh Bring code coverage dashboard back (#8394) 2021-08-16 20:54:39 -07:00
build_ort_and_check_binary_size.py Add build configuration to binary size checks pipeline. (#13208) 2022-10-05 12:39:19 -07:00
check_build_binary_size.py Format all python files under onnxruntime with black and isort (#11324) 2022-04-26 09:35:16 -07:00
nnapi_minimal_build_minimal_ort_and_run_tests.sh Build shared host protoc in iOS CI pipelines (#9087) 2021-09-16 17:16:50 -07:00
readelf_utils.py Format all python files under onnxruntime with black and isort (#11324) 2022-04-26 09:35:16 -07:00