onnxruntime/tools/ci_build/github/linux
Edward Chen 454f77cd94
Update kernel matching logic: decouple from op schemas and remove kernel def hashes (#12791)
# Motivation
Currently, ORT minimal builds use kernel def hashes to map from nodes to
kernels to execute when loading the model. As the kernel def hashes must
be known ahead of time, this works for statically registered kernels.
This works well for the CPU EP.
For this approach to work, the kernel def hashes must also be known at
ORT format model conversion time, which means the EP with statically
registered kernels must also be enabled then. This is not an issue for
the always-available CPU EP. However, we do not want to require that any
EP which statically registers kernels is always available too.
Consequently, we explore another approach to match nodes to kernels that
does not rely on kernel def hashes. An added benefit of this is the
possibility of moving away from kernel def hashes completely, which
would eliminate the maintenance burden of keeping the hashes stable.

# Approach
In a full build, ORT uses some information from the ONNX op schema to
match a node to a kernel. We want to avoid including the ONNX op schema
in a minimal build to reduce binary size. Essentially, we take the
necessary information from the ONNX op schema and make it available in a
minimal build.
We decouple the ONNX op schema from the kernel matching logic. The
kernel matching logic instead relies on per-op information which can
either be obtained from the ONNX op schema or another source.
This per-op information must be available in a minimal build when there
are no ONNX op schemas. We put it in the ORT format model.
Existing uses of kernel def hashes to look up kernels are replaced
with the updated kernel matching logic. We no longer store
kernel def hashes in the ORT format model’s session state and runtime
optimization representations. We no longer keep the logic to
generate and ensure stability of kernel def hashes.
2022-09-20 14:24:59 -07:00
..
docker downgrade setuptools 2022-09-19 12:39:35 -07:00
ort_minimal Update kernel matching logic: decouple from op schemas and remove kernel def hashes (#12791) 2022-09-20 14:24:59 -07:00
tvm Move tvm pipeline to Github Actions (#11721) 2022-06-13 11:38:44 -07:00
build_cuda_c_api_package.sh Remove git and python packages from the docker images used by Zip-Nuget-Java-Nodejs Packaging Pipeline (#11651) 2022-06-03 20:00:54 -07:00
build_linux_arm64_python_package.sh Refactor python packaging pipeline and nuget packaging pipeline (#12945) 2022-09-13 14:50:31 -07:00
build_yocto.sh Bring code coverage dashboard back (#8394) 2021-08-16 20:54:39 -07:00
copy_strip_binary.sh include coreml_provider_factory.h in macos build instead of coreml_ex… (#12138) 2022-07-11 18:27:01 -07:00
create_package.sh Pull the latest image before running docker build 2019-11-22 13:48:37 -08:00
extract_and_bundle_gpu_package.sh Remove git and python packages from the docker images used by Zip-Nuget-Java-Nodejs Packaging Pipeline (#11651) 2022-06-03 20:00:54 -07:00
java_copy_strip_binary.sh Change native folder name for java macos arm64 (#12335) 2022-07-27 15:13:07 -07:00
java_linux_final_test.sh Fix shellcheck warning (#11489) 2022-05-13 15:36:59 +08:00
run_build.sh Update Linux Multi GPU TensorRT pipeline to TensorRT 8.4 (#11923) 2022-06-21 07:59:11 -07:00
run_dockerbuild.sh Delete Dockerfile.ubuntu (#12888) 2022-09-08 10:26:40 -07:00
run_python_tests.sh Refactor python packaging pipeline and nuget packaging pipeline (#12945) 2022-09-13 14:50:31 -07:00
test_custom_ops_pytorch_export.sh Change "Export PyTorch CustomOp" build pipeline to use Ubuntu 20.04 (#8158) 2021-06-28 16:13:55 -07:00
upload_code_coverage_data.sh Pin version of post to dashboard scripts' dependencies and update them to work with recent version. (#10353) 2022-01-21 19:35:58 -08:00
upload_ortsrv_binaries.sh Refactor Onnx runtime Server to only use public APIs (#1271) 2019-07-04 01:08:14 -07:00
yocto_build_toolchain.sh Bring code coverage dashboard back (#8394) 2021-08-16 20:54:39 -07:00