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
I am using OnnxRuntime extensions 0.11.0 in Java via DJL, and while this all works fine on Linux, the same code on Windows fails during initialisation on the OrtSession.SessionOptions.registerCustomOpLibrary() call:
Caused by: ai.onnxruntime.OrtException: Error code - ORT_FAIL - message: Failed to find symbol RegisterCustomOps in library, error code: 127 ""
at ai.onnxruntime.OrtSession$SessionOptions.registerCustomOpLibrary(Native Method) ~[onnxruntime-1.17.3.jar:1.17.3]
at ai.onnxruntime.OrtSession$SessionOptions.registerCustomOpLibrary(OrtSession.java:868) ~[onnxruntime-1.17.3.jar:1.17.3]
I have noticed the size of the embedded native libraries within com.microsoft.onnxruntime:onnxruntime-extensions:0.11.0 seems vastly different between Windows and Linux:
$ ls -lh
total 193M
-rw-rw-r-- 1 sits sits 8.8M May 24 23:32 libonnxruntime_extensions4j_jni.dylib
-rw-rw-r-- 1 sits sits 176M May 24 23:33 libonnxruntime_extensions4j_jni.so
-rw-rw-r-- 1 sits sits 8.1M May 24 23:33 onnxruntime_extensions4j_jni.dll
The Linux shared object file is almost 10x the size of the Windows (and macOS) libraries. Is something missing leading to this issue?
I can see the .so file does have the symbol mentioned:
$ nm -gD libonnxruntime_extensions4j_jni.so | grep RegisterCustomOps
0000000000152bc0 T RegisterCustomOps
I opened the .dll with Ghidra and RegisterCustomOps seems to be missing.
Is there a build problem here, or have I missed something?
The text was updated successfully, but these errors were encountered:
I am using OnnxRuntime extensions 0.11.0 in Java via DJL, and while this all works fine on Linux, the same code on Windows fails during initialisation on the
OrtSession.SessionOptions.registerCustomOpLibrary()
call:I have noticed the size of the embedded native libraries within com.microsoft.onnxruntime:onnxruntime-extensions:0.11.0 seems vastly different between Windows and Linux:
The Linux shared object file is almost 10x the size of the Windows (and macOS) libraries. Is something missing leading to this issue?
I can see the .so file does have the symbol mentioned:
I opened the .dll with Ghidra and RegisterCustomOps seems to be missing.
Is there a build problem here, or have I missed something?
The text was updated successfully, but these errors were encountered: