onnxruntime/include/onnxruntime/core
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
..
common Fix skew between GPU/CPU timestamps in ORT profiler (#14004) 2023-01-05 11:07:26 -08:00
eager
framework Create dedicated build for training api (#14136) 2023-01-10 20:58:04 -08:00
graph Rename CloudEP to AzureEP (#14175) 2023-01-11 12:25:04 -08:00
optimizer
platform
providers
session Add ability to register custom ops by specifying a function name (#14177) 2023-01-12 15:11:34 +10:00