com.github.asus4.onnxruntime 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -71,10 +71,10 @@ Pre-built libraries are available on [NPM](https://www.npmjs.com/package/com.git
|
|
|
71
71
|
}
|
|
72
72
|
]
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"com.github.asus4.onnxruntime": "0.3.
|
|
75
|
-
"com.github.asus4.onnxruntime.unity": "0.3.
|
|
76
|
-
"com.github.asus4.onnxruntime.win-x64-gpu": "0.3.
|
|
77
|
-
"com.github.asus4.onnxruntime-extensions": "0.3.
|
|
74
|
+
"com.github.asus4.onnxruntime": "0.3.2",
|
|
75
|
+
"com.github.asus4.onnxruntime.unity": "0.3.2",
|
|
76
|
+
"com.github.asus4.onnxruntime.win-x64-gpu": "0.3.2",
|
|
77
|
+
"com.github.asus4.onnxruntime-extensions": "0.3.2",
|
|
78
78
|
... other dependencies
|
|
79
79
|
}
|
|
80
80
|
```
|
|
@@ -2200,6 +2200,7 @@ namespace Microsoft.ML.OnnxRuntime
|
|
|
2200
2200
|
// adjust the library name based on platform.
|
|
2201
2201
|
internal static class OrtExtensionsNativeMethods
|
|
2202
2202
|
{
|
|
2203
|
+
#if ORT_EXTENSION
|
|
2203
2204
|
#if __ANDROID__
|
|
2204
2205
|
internal const string ExtensionsDllName = "libortextensions.so";
|
|
2205
2206
|
#elif __IOS__
|
|
@@ -2212,5 +2213,11 @@ namespace Microsoft.ML.OnnxRuntime
|
|
|
2212
2213
|
CallingConvention = CallingConvention.Winapi)]
|
|
2213
2214
|
public static extern IntPtr /* OrtStatus* */ RegisterCustomOps(IntPtr /* OrtSessionOptions* */ sessionOptions,
|
|
2214
2215
|
ref OrtApiBase /* OrtApiBase* */ ortApiBase);
|
|
2216
|
+
#else
|
|
2217
|
+
public static IntPtr RegisterCustomOps(IntPtr sessionOptions, ref OrtApiBase ortApiBase)
|
|
2218
|
+
{
|
|
2219
|
+
throw new DllNotFoundException("onnxruntime-extensions is not installed");
|
|
2220
|
+
}
|
|
2221
|
+
#endif // ORT_EXTENSION
|
|
2215
2222
|
}
|
|
2216
2223
|
} // namespace
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"name": "com.github.asus4.onnxruntime.win-x64-gpu",
|
|
15
15
|
"expression": "0.1.4",
|
|
16
16
|
"define": "ORT_GPU_PROVIDER_WIN"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "com.github.asus4.onnxruntime-extensions",
|
|
20
|
+
"expression": "0.1.4",
|
|
21
|
+
"define": "ORT_EXTENSION"
|
|
17
22
|
}
|
|
18
23
|
],
|
|
19
24
|
"noEngineReferences": true
|