You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I got error: onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Failed to get symbol RegisterCustomOps with error: /myLib.so: undefined symbol: RegisterCustomOps
I am wondering to know how can I resolve this problem.
Thanks.
Urgency
No response
Target platform
pytorch
Build script
Wrote above.
Error / output
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Failed to get symbol RegisterCustomOps with error: /myLib.so: undefined symbol: RegisterCustomOps
Visual Studio Version
No response
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.
Describe the issue
I wrote a custom op library referring to https://github.com/microsoft/onnxruntime/tree/rel-1.16.0/onnxruntime/test/testdata/custom_op_library,
my custom_op_library.h file is like this:
my custom_op_library.cc file is like this:
my custom_op_library.lds file is like this:
my CMakeLists.txt is like this:
And I build the .so and use the python APIhttps://onnxruntime.ai/docs/api/python/api_summary.html#onnxruntime.SessionOptions.register_custom_ops_library
My code is like this:
And I got error:
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Failed to get symbol RegisterCustomOps with error: /myLib.so: undefined symbol: RegisterCustomOps
I am wondering to know how can I resolve this problem.
Thanks.
Urgency
No response
Target platform
pytorch
Build script
Wrote above.
Error / output
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Failed to get symbol RegisterCustomOps with error: /myLib.so: undefined symbol: RegisterCustomOps
Visual Studio Version
No response
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: