-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
com.microsoft.onnxruntime:onnxruntime-extensions:0.11.0: missing RegisterCustomOps in onnxruntime_extensions4j_jni.dll #764
Comments
As a point of comparison, from https://globalcdn.nuget.org/packages/microsoft.ml.onnxruntime.extensions.0.10.0.nupkg package, the linux-x86 .so file is only 5.1MB and the win-x64 ortextensions.dll file is 6.9MB. So surely libonnxruntime_extensions4j_jni.so being 176MB for Linux is packaging up too much? Anybody have any ideas what is going on here? I am hoping to use extensions in my project for both Windows and Linux, but this is currently a blocker. |
I can also see ortextensions.dll from the nupkg file does indeed export |
@sayanshaw24 , can you follow up with these issues that @david-sitsky mentioned here? |
This issue also exists for CocoaPods/iOS. I am importing the newest version of onnxruntime extensions using |
What makes this problem even worse is the fact that in iOS it's almost impossible to import local packages because the CocoaPods team is driving an anti-developer ideology and actively refusing to even allow such a feature since almost 10 years. For Android and Windows/Linux I built the runtime and extensions library myself and imported it with no problems |
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: