onnxruntime/tools
Scott McKay b9ecd428c1
Add ability to register custom ops by specifying a function name (#14177)
### Description
<!-- Describe your changes. -->
Use dlsym/GetProcAddress to lookup a custom ops registration function by
name and call it.

This will be better on mobile platforms where the custom ops library is
linked against, and there isn't necessarily a filesystem that a library
path can be loaded from.

Alternative is to wire up passing in the address of the function, but
that has multiple complications which differ by platform.

### 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 using ort and ort-ext packages on mobile platforms.

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-01-12 15:11:34 +10:00
..
android_custom_build Replace references to onnxruntime 'master' with 'main' in Dockerfiles. (#12550) 2022-08-16 14:13:05 -07:00
ci_build Add ability to register custom ops by specifying a function name (#14177) 2023-01-12 15:11:34 +10:00
doc Format all python files under onnxruntime with black and isort (#11324) 2022-04-26 09:35:16 -07:00
nuget Openvino ep 2022.3 v4.3 (#14210) 2023-01-11 16:31:26 -08:00
perf_view fix json format (#11046) 2022-03-30 16:15:33 -07:00
python to work with onnx 1.13 rc, implement ver 18 reduce and optioanl ops, … (#13765) 2023-01-09 10:26:16 -08:00