Repository navigation
Replies: 2 comments 3 replies
|
Hi, You’re right that ONNX Runtime custom operators are registered through a library’s For a custom library you control, the most reliable approach is to expose or maintain your own metadata alongside
If you need metadata from an operator implementation at registration time, the custom-op definitions contain information such as the operator name, input/output type and count callbacks, and attribute-related callbacks. However, that information is not equivalent to a complete ONNX One important distinction: ONNX Runtime’s contrib operators are built into the runtime and have separately documented schemas; external custom operators are registered by the library that implements them. See the [contrib operator documentation](https://onnxruntime.ai/docs/reference/operators/ContribOperators.html). So, if the library is third-party and does not expose a metadata function or manifest, there may not be a supported runtime API to retrieve the full metadata. You would likely need to inspect its source or ask its maintainers to expose that information. If this answer helped or pointed you in the right direction, I'd appreciate it if you could mark it as the accepted answer so it's easier for others with the same issue to find. Also, if you found my contribution useful, I'd appreciate it if you could check out my GitHub profile, follow me, and star any repositories you find interesting. GitHub: https://github.com/Advait251206 |
|
The source entry point you want is By contrast, If you're modifying ORT, the |
Uh oh!
There was an error while loading. Please reload this page.
I have been using the function "onnxruntime.capi.onnxruntime_pybind11_state.get_all_operator_schema()" to retrieve all the OpSchemas of the operators. I believe the function does not extend to custom operators introduced with "register_custom_ops_library()". I have been examining the library and the code to find any information or method to get this information. Does anyone know where new operators are stored or how to access their metadata?
The information does not need to be directly a OpSchema at least the functions and then I can try to parse the information from there.
All reactions