com.github.asus4.onnxruntime 0.3.3 → 0.3.4
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/Plugins/Android/{onnxruntime-android.aar → onnxruntime.aar} +0 -0
- package/Plugins/Linux/x64/libonnxruntime.so +0 -0
- package/Plugins/Linux/x64/libonnxruntime.so.meta +17 -37
- package/Plugins/Windows/arm64/onnxruntime.dll +0 -0
- package/Plugins/Windows/arm64/onnxruntime.dll.meta +65 -0
- package/{Editor.meta → Plugins/Windows/arm64.meta} +1 -1
- package/Plugins/Windows/x64/onnxruntime.dll +0 -0
- package/Plugins/Windows/x64/onnxruntime.dll.meta +15 -35
- package/Plugins/Windows/x86/onnxruntime.dll +0 -0
- package/Plugins/Windows/x86/onnxruntime.dll.meta +65 -0
- package/{Editor/com.github.asus4.onnxruntime.Editor.asmdef.meta → Plugins/Windows/x86.meta} +3 -2
- package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/Info.plist +9 -7
- package/Plugins/iOS/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/coreml_provider_factory.h +90 -0
- package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/onnxruntime_c_api.h +41 -6
- package/Plugins/{iOS~/onnxruntime.xcframework/ios-arm64_x86_64-simulator → iOS/onnxruntime.xcframework/ios-arm64}/onnxruntime.framework/Headers/onnxruntime_cxx_api.h +35 -6
- package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64/onnxruntime.framework/Versions/A → iOS/onnxruntime.xcframework/ios-arm64/onnxruntime.framework}/Headers/onnxruntime_cxx_inline.h +2 -2
- package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64/onnxruntime.framework/Versions/A → iOS/onnxruntime.xcframework/ios-arm64/onnxruntime.framework}/Headers/onnxruntime_session_options_config_keys.h +53 -2
- package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Info.plist +2 -2
- package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/onnxruntime +0 -0
- package/Plugins/iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst/onnxruntime.framework/Versions/A/Headers/coreml_provider_factory.h +90 -0
- package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64 → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst}/onnxruntime.framework/Versions/A/Headers/onnxruntime_c_api.h +41 -6
- package/Plugins/{iOS~/onnxruntime.xcframework/ios-arm64/onnxruntime.framework → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst/onnxruntime.framework/Versions/A}/Headers/onnxruntime_cxx_api.h +35 -6
- package/Plugins/{iOS~/onnxruntime.xcframework/ios-arm64/onnxruntime.framework → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst/onnxruntime.framework/Versions/A}/Headers/onnxruntime_cxx_inline.h +2 -2
- package/Plugins/{iOS~/onnxruntime.xcframework/ios-arm64/onnxruntime.framework → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst/onnxruntime.framework/Versions/A}/Headers/onnxruntime_session_options_config_keys.h +53 -2
- package/Plugins/{iOS~/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst/onnxruntime.framework/Versions/A/Resources}/Info.plist +2 -2
- package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64 → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst}/onnxruntime.framework/Versions/A/onnxruntime +0 -0
- package/Plugins/iOS/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/Headers/coreml_provider_factory.h +90 -0
- package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/Headers/onnxruntime_c_api.h +41 -6
- package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64/onnxruntime.framework/Versions/A → iOS/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework}/Headers/onnxruntime_cxx_api.h +35 -6
- package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/Headers/onnxruntime_cxx_inline.h +2 -2
- package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/Headers/onnxruntime_session_options_config_keys.h +53 -2
- package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64/onnxruntime.framework/Versions/A/Resources → iOS/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework}/Info.plist +2 -2
- package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/onnxruntime +0 -0
- package/Plugins/iOS/onnxruntime.xcframework.meta +61 -0
- package/Plugins/iOS.meta +8 -0
- package/Plugins/macOS/arm64/libonnxruntime.dylib +0 -0
- package/Plugins/macOS/{libonnxruntime.dylib.meta → arm64/libonnxruntime.dylib.meta} +20 -40
- package/Plugins/macOS/arm64.meta +8 -0
- package/Plugins/macOS/{libonnxruntime.dylib → x64/libonnxruntime.dylib} +0 -0
- package/Plugins/macOS/x64/libonnxruntime.dylib.meta +61 -0
- package/Plugins/macOS/x64.meta +8 -0
- package/README.md +9 -10
- package/Runtime/NativeMethods.shared.cs +1 -4
- package/Runtime/OrtValue.shared.cs +157 -1
- package/Runtime/SessionOptions.shared.cs +1 -42
- package/Runtime/Training/NativeTrainingMethods.shared.cs +1 -1
- package/package.json +1 -1
- package/Editor/OrtPostProcessBuild.cs +0 -77
- package/Editor/OrtPostProcessBuild.cs.meta +0 -11
- package/Editor/com.github.asus4.onnxruntime.Editor.asmdef +0 -16
- package/Plugins/iOS~/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/coreml_provider_factory.h +0 -53
- package/Plugins/iOS~/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/Headers/coreml_provider_factory.h +0 -53
- package/Plugins/iOS~/onnxruntime.xcframework/macos-arm64_x86_64/onnxruntime.framework/Versions/A/Headers/coreml_provider_factory.h +0 -53
- /package/Plugins/Android/{onnxruntime-android.aar.meta → onnxruntime.aar.meta} +0 -0
- /package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/cpu_provider_factory.h +0 -0
- /package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/onnxruntime_float16.h +0 -0
- /package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/onnxruntime_lite_custom_op.h +0 -0
- /package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/onnxruntime_run_options_config_keys.h +0 -0
- /package/Plugins/{iOS~/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst/onnxruntime.framework/Versions/A}/Headers/cpu_provider_factory.h +0 -0
- /package/Plugins/{iOS~/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst/onnxruntime.framework/Versions/A}/Headers/onnxruntime_float16.h +0 -0
- /package/Plugins/{iOS~/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst/onnxruntime.framework/Versions/A}/Headers/onnxruntime_lite_custom_op.h +0 -0
- /package/Plugins/{iOS~/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst/onnxruntime.framework/Versions/A}/Headers/onnxruntime_run_options_config_keys.h +0 -0
- /package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64/onnxruntime.framework/Versions/A → iOS/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework}/Headers/cpu_provider_factory.h +0 -0
- /package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64/onnxruntime.framework/Versions/A → iOS/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework}/Headers/onnxruntime_float16.h +0 -0
- /package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64/onnxruntime.framework/Versions/A → iOS/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework}/Headers/onnxruntime_lite_custom_op.h +0 -0
- /package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64/onnxruntime.framework/Versions/A → iOS/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework}/Headers/onnxruntime_run_options_config_keys.h +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -2,7 +2,7 @@ fileFormatVersion: 2
|
|
|
2
2
|
guid: b27b30e4e87554214b41504abd9a3755
|
|
3
3
|
PluginImporter:
|
|
4
4
|
externalObjects: {}
|
|
5
|
-
serializedVersion:
|
|
5
|
+
serializedVersion: 3
|
|
6
6
|
iconMap: {}
|
|
7
7
|
executionOrder: {}
|
|
8
8
|
defineConstraints: []
|
|
@@ -11,65 +11,45 @@ PluginImporter:
|
|
|
11
11
|
isExplicitlyReferenced: 0
|
|
12
12
|
validateReferences: 1
|
|
13
13
|
platformData:
|
|
14
|
-
|
|
15
|
-
:
|
|
16
|
-
|
|
14
|
+
Android:
|
|
15
|
+
enabled: 0
|
|
16
|
+
settings:
|
|
17
|
+
AndroidLibraryDependee: UnityLibrary
|
|
18
|
+
AndroidSharedLibraryType: Executable
|
|
19
|
+
CPU: ARMv7
|
|
20
|
+
Any:
|
|
17
21
|
enabled: 0
|
|
18
22
|
settings:
|
|
19
23
|
Exclude Android: 1
|
|
20
24
|
Exclude Editor: 0
|
|
21
25
|
Exclude Linux64: 0
|
|
22
|
-
Exclude OSXUniversal:
|
|
26
|
+
Exclude OSXUniversal: 1
|
|
23
27
|
Exclude Win: 0
|
|
24
28
|
Exclude Win64: 0
|
|
25
29
|
Exclude iOS: 1
|
|
26
|
-
|
|
27
|
-
Android: Android
|
|
28
|
-
second:
|
|
29
|
-
enabled: 0
|
|
30
|
-
settings:
|
|
31
|
-
AndroidSharedLibraryType: Executable
|
|
32
|
-
CPU: ARMv7
|
|
33
|
-
- first:
|
|
34
|
-
Any:
|
|
35
|
-
second:
|
|
36
|
-
enabled: 0
|
|
37
|
-
settings: {}
|
|
38
|
-
- first:
|
|
39
|
-
Editor: Editor
|
|
40
|
-
second:
|
|
30
|
+
Editor:
|
|
41
31
|
enabled: 1
|
|
42
32
|
settings:
|
|
43
33
|
CPU: x86_64
|
|
44
34
|
DefaultValueInitialized: true
|
|
45
35
|
OS: Linux
|
|
46
|
-
|
|
47
|
-
Standalone: Linux64
|
|
48
|
-
second:
|
|
36
|
+
Linux64:
|
|
49
37
|
enabled: 1
|
|
50
38
|
settings:
|
|
51
39
|
CPU: AnyCPU
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
second:
|
|
55
|
-
enabled: 1
|
|
40
|
+
OSXUniversal:
|
|
41
|
+
enabled: 0
|
|
56
42
|
settings:
|
|
57
|
-
CPU:
|
|
58
|
-
|
|
59
|
-
Standalone: Win
|
|
60
|
-
second:
|
|
43
|
+
CPU: None
|
|
44
|
+
Win:
|
|
61
45
|
enabled: 1
|
|
62
46
|
settings:
|
|
63
47
|
CPU: AnyCPU
|
|
64
|
-
|
|
65
|
-
Standalone: Win64
|
|
66
|
-
second:
|
|
48
|
+
Win64:
|
|
67
49
|
enabled: 1
|
|
68
50
|
settings:
|
|
69
51
|
CPU: AnyCPU
|
|
70
|
-
|
|
71
|
-
iPhone: iOS
|
|
72
|
-
second:
|
|
52
|
+
iOS:
|
|
73
53
|
enabled: 0
|
|
74
54
|
settings:
|
|
75
55
|
AddToEmbeddedBinaries: false
|
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 02ed5287ee9c84ec48102a291c5c41f6
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 3
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 1
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
Android:
|
|
15
|
+
enabled: 0
|
|
16
|
+
settings:
|
|
17
|
+
AndroidLibraryDependee: UnityLibrary
|
|
18
|
+
AndroidSharedLibraryType: Executable
|
|
19
|
+
CPU: ARMv7
|
|
20
|
+
Any:
|
|
21
|
+
enabled: 0
|
|
22
|
+
settings:
|
|
23
|
+
Exclude Android: 1
|
|
24
|
+
Exclude Editor: 0
|
|
25
|
+
Exclude Linux64: 1
|
|
26
|
+
Exclude OSXUniversal: 1
|
|
27
|
+
Exclude Win: 1
|
|
28
|
+
Exclude Win64: 0
|
|
29
|
+
Exclude iOS: 1
|
|
30
|
+
Editor:
|
|
31
|
+
enabled: 1
|
|
32
|
+
settings:
|
|
33
|
+
CPU: ARM64
|
|
34
|
+
DefaultValueInitialized: true
|
|
35
|
+
OS: Windows
|
|
36
|
+
Linux64:
|
|
37
|
+
enabled: 0
|
|
38
|
+
settings:
|
|
39
|
+
CPU: x86_64
|
|
40
|
+
OSXUniversal:
|
|
41
|
+
enabled: 0
|
|
42
|
+
settings:
|
|
43
|
+
CPU: None
|
|
44
|
+
Win:
|
|
45
|
+
enabled: 0
|
|
46
|
+
settings:
|
|
47
|
+
CPU: None
|
|
48
|
+
Win64:
|
|
49
|
+
enabled: 1
|
|
50
|
+
settings:
|
|
51
|
+
CPU: ARM64
|
|
52
|
+
WindowsStoreApps:
|
|
53
|
+
enabled: 0
|
|
54
|
+
settings:
|
|
55
|
+
CPU: ARM64
|
|
56
|
+
iOS:
|
|
57
|
+
enabled: 0
|
|
58
|
+
settings:
|
|
59
|
+
AddToEmbeddedBinaries: false
|
|
60
|
+
CPU: AnyCPU
|
|
61
|
+
CompileFlags:
|
|
62
|
+
FrameworkDependencies:
|
|
63
|
+
userData:
|
|
64
|
+
assetBundleName:
|
|
65
|
+
assetBundleVariant:
|
|
Binary file
|
|
@@ -2,7 +2,7 @@ fileFormatVersion: 2
|
|
|
2
2
|
guid: ed845f30a62cb48a992c3d6e00fb3b0f
|
|
3
3
|
PluginImporter:
|
|
4
4
|
externalObjects: {}
|
|
5
|
-
serializedVersion:
|
|
5
|
+
serializedVersion: 3
|
|
6
6
|
iconMap: {}
|
|
7
7
|
executionOrder: {}
|
|
8
8
|
defineConstraints: []
|
|
@@ -11,9 +11,13 @@ PluginImporter:
|
|
|
11
11
|
isExplicitlyReferenced: 0
|
|
12
12
|
validateReferences: 1
|
|
13
13
|
platformData:
|
|
14
|
-
|
|
15
|
-
:
|
|
16
|
-
|
|
14
|
+
Android:
|
|
15
|
+
enabled: 0
|
|
16
|
+
settings:
|
|
17
|
+
AndroidLibraryDependee: UnityLibrary
|
|
18
|
+
AndroidSharedLibraryType: Executable
|
|
19
|
+
CPU: ARMv7
|
|
20
|
+
Any:
|
|
17
21
|
enabled: 0
|
|
18
22
|
settings:
|
|
19
23
|
Exclude Android: 1
|
|
@@ -23,53 +27,29 @@ PluginImporter:
|
|
|
23
27
|
Exclude Win: 1
|
|
24
28
|
Exclude Win64: 0
|
|
25
29
|
Exclude iOS: 1
|
|
26
|
-
|
|
27
|
-
Android: Android
|
|
28
|
-
second:
|
|
29
|
-
enabled: 0
|
|
30
|
-
settings:
|
|
31
|
-
AndroidSharedLibraryType: Executable
|
|
32
|
-
CPU: ARMv7
|
|
33
|
-
- first:
|
|
34
|
-
Any:
|
|
35
|
-
second:
|
|
36
|
-
enabled: 0
|
|
37
|
-
settings: {}
|
|
38
|
-
- first:
|
|
39
|
-
Editor: Editor
|
|
40
|
-
second:
|
|
30
|
+
Editor:
|
|
41
31
|
enabled: 1
|
|
42
32
|
settings:
|
|
43
33
|
CPU: x86_64
|
|
44
34
|
DefaultValueInitialized: true
|
|
45
35
|
OS: Windows
|
|
46
|
-
|
|
47
|
-
Standalone: Linux64
|
|
48
|
-
second:
|
|
36
|
+
Linux64:
|
|
49
37
|
enabled: 1
|
|
50
38
|
settings:
|
|
51
39
|
CPU: AnyCPU
|
|
52
|
-
|
|
53
|
-
Standalone: OSXUniversal
|
|
54
|
-
second:
|
|
40
|
+
OSXUniversal:
|
|
55
41
|
enabled: 1
|
|
56
42
|
settings:
|
|
57
43
|
CPU: AnyCPU
|
|
58
|
-
|
|
59
|
-
Standalone: Win
|
|
60
|
-
second:
|
|
44
|
+
Win:
|
|
61
45
|
enabled: 0
|
|
62
46
|
settings:
|
|
63
47
|
CPU: AnyCPU
|
|
64
|
-
|
|
65
|
-
Standalone: Win64
|
|
66
|
-
second:
|
|
48
|
+
Win64:
|
|
67
49
|
enabled: 1
|
|
68
50
|
settings:
|
|
69
|
-
CPU:
|
|
70
|
-
|
|
71
|
-
iPhone: iOS
|
|
72
|
-
second:
|
|
51
|
+
CPU: x86_64
|
|
52
|
+
iOS:
|
|
73
53
|
enabled: 0
|
|
74
54
|
settings:
|
|
75
55
|
AddToEmbeddedBinaries: false
|
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 65e7873525c954c9b9096de9496a9654
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 3
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 1
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
Android:
|
|
15
|
+
enabled: 0
|
|
16
|
+
settings:
|
|
17
|
+
AndroidLibraryDependee: UnityLibrary
|
|
18
|
+
AndroidSharedLibraryType: Executable
|
|
19
|
+
CPU: ARMv7
|
|
20
|
+
Any:
|
|
21
|
+
enabled: 0
|
|
22
|
+
settings:
|
|
23
|
+
Exclude Android: 1
|
|
24
|
+
Exclude Editor: 1
|
|
25
|
+
Exclude Linux64: 1
|
|
26
|
+
Exclude OSXUniversal: 1
|
|
27
|
+
Exclude Win: 0
|
|
28
|
+
Exclude Win64: 1
|
|
29
|
+
Exclude iOS: 1
|
|
30
|
+
Editor:
|
|
31
|
+
enabled: 0
|
|
32
|
+
settings:
|
|
33
|
+
CPU: x86_64
|
|
34
|
+
DefaultValueInitialized: true
|
|
35
|
+
OS: Windows
|
|
36
|
+
Linux64:
|
|
37
|
+
enabled: 0
|
|
38
|
+
settings:
|
|
39
|
+
CPU: x86_64
|
|
40
|
+
OSXUniversal:
|
|
41
|
+
enabled: 0
|
|
42
|
+
settings:
|
|
43
|
+
CPU: None
|
|
44
|
+
Win:
|
|
45
|
+
enabled: 1
|
|
46
|
+
settings:
|
|
47
|
+
CPU: x86
|
|
48
|
+
Win64:
|
|
49
|
+
enabled: 0
|
|
50
|
+
settings:
|
|
51
|
+
CPU: None
|
|
52
|
+
WindowsStoreApps:
|
|
53
|
+
enabled: 0
|
|
54
|
+
settings:
|
|
55
|
+
CPU: x86
|
|
56
|
+
iOS:
|
|
57
|
+
enabled: 0
|
|
58
|
+
settings:
|
|
59
|
+
AddToEmbeddedBinaries: false
|
|
60
|
+
CPU: AnyCPU
|
|
61
|
+
CompileFlags:
|
|
62
|
+
FrameworkDependencies:
|
|
63
|
+
userData:
|
|
64
|
+
assetBundleName:
|
|
65
|
+
assetBundleVariant:
|
|
@@ -6,34 +6,34 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>onnxruntime.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
-
<string>x86_64</string>
|
|
16
15
|
</array>
|
|
17
16
|
<key>SupportedPlatform</key>
|
|
18
17
|
<string>ios</string>
|
|
19
|
-
<key>SupportedPlatformVariant</key>
|
|
20
|
-
<string>simulator</string>
|
|
21
18
|
</dict>
|
|
22
19
|
<dict>
|
|
23
20
|
<key>LibraryIdentifier</key>
|
|
24
|
-
<string>ios-
|
|
21
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
25
22
|
<key>LibraryPath</key>
|
|
26
23
|
<string>onnxruntime.framework</string>
|
|
27
24
|
<key>SupportedArchitectures</key>
|
|
28
25
|
<array>
|
|
29
26
|
<string>arm64</string>
|
|
27
|
+
<string>x86_64</string>
|
|
30
28
|
</array>
|
|
31
29
|
<key>SupportedPlatform</key>
|
|
32
30
|
<string>ios</string>
|
|
31
|
+
<key>SupportedPlatformVariant</key>
|
|
32
|
+
<string>simulator</string>
|
|
33
33
|
</dict>
|
|
34
34
|
<dict>
|
|
35
35
|
<key>LibraryIdentifier</key>
|
|
36
|
-
<string>
|
|
36
|
+
<string>ios-arm64_x86_64-maccatalyst</string>
|
|
37
37
|
<key>LibraryPath</key>
|
|
38
38
|
<string>onnxruntime.framework</string>
|
|
39
39
|
<key>SupportedArchitectures</key>
|
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
<string>x86_64</string>
|
|
43
43
|
</array>
|
|
44
44
|
<key>SupportedPlatform</key>
|
|
45
|
-
<string>
|
|
45
|
+
<string>ios</string>
|
|
46
|
+
<key>SupportedPlatformVariant</key>
|
|
47
|
+
<string>maccatalyst</string>
|
|
46
48
|
</dict>
|
|
47
49
|
</array>
|
|
48
50
|
<key>CFBundlePackageType</key>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
#pragma once
|
|
4
|
+
|
|
5
|
+
#include "onnxruntime_c_api.h"
|
|
6
|
+
|
|
7
|
+
// COREMLFlags are bool options we want to set for CoreML EP
|
|
8
|
+
// This enum is defined as bit flags, and cannot have negative value
|
|
9
|
+
// To generate an uint32_t coreml_flags for using with OrtSessionOptionsAppendExecutionProvider_CoreML below,
|
|
10
|
+
// uint32_t coreml_flags = 0;
|
|
11
|
+
// coreml_flags |= COREML_FLAG_USE_CPU_ONLY;
|
|
12
|
+
enum COREMLFlags {
|
|
13
|
+
COREML_FLAG_USE_NONE = 0x000,
|
|
14
|
+
|
|
15
|
+
// Using CPU only in CoreML EP, this may decrease the perf but will provide
|
|
16
|
+
// reference output value without precision loss, which is useful for validation
|
|
17
|
+
COREML_FLAG_USE_CPU_ONLY = 0x001,
|
|
18
|
+
|
|
19
|
+
// Enable CoreML EP on subgraph
|
|
20
|
+
COREML_FLAG_ENABLE_ON_SUBGRAPH = 0x002,
|
|
21
|
+
|
|
22
|
+
// By default CoreML Execution provider will be enabled for all compatible Apple devices
|
|
23
|
+
// Enable this option will only enable CoreML EP for Apple devices with ANE (Apple Neural Engine)
|
|
24
|
+
// Please note, enable this option does not guarantee the entire model to be executed using ANE only
|
|
25
|
+
COREML_FLAG_ONLY_ENABLE_DEVICE_WITH_ANE = 0x004,
|
|
26
|
+
|
|
27
|
+
// Only allow CoreML EP to take nodes with inputs with static shapes. By default it will also allow inputs with
|
|
28
|
+
// dynamic shapes. However, the performance may be negatively impacted if inputs have dynamic shapes.
|
|
29
|
+
COREML_FLAG_ONLY_ALLOW_STATIC_INPUT_SHAPES = 0x008,
|
|
30
|
+
|
|
31
|
+
// Create an MLProgram. By default it will create a NeuralNetwork model. Requires Core ML 5 or later.
|
|
32
|
+
COREML_FLAG_CREATE_MLPROGRAM = 0x010,
|
|
33
|
+
|
|
34
|
+
// https://developer.apple.com/documentation/coreml/mlcomputeunits?language=objc
|
|
35
|
+
// there are four compute units:
|
|
36
|
+
// MLComputeUnitsCPUAndNeuralEngine|MLComputeUnitsCPUAndGPU|MLComputeUnitsCPUOnly|MLComputeUnitsAll
|
|
37
|
+
// different CU will have different performance and power consumption
|
|
38
|
+
COREML_FLAG_USE_CPU_AND_GPU = 0x020,
|
|
39
|
+
// Keep COREML_FLAG_LAST at the end of the enum definition
|
|
40
|
+
// And assign the last COREMLFlag to it
|
|
41
|
+
COREML_FLAG_LAST = COREML_FLAG_USE_CPU_AND_GPU,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// MLComputeUnits can be one of the following values:
|
|
45
|
+
// 'MLComputeUnitsCPUAndNeuralEngine|MLComputeUnitsCPUAndGPU|MLComputeUnitsCPUOnly|MLComputeUnitsAll'
|
|
46
|
+
// these values are intended to be used with Ort::SessionOptions::AppendExecutionProvider (C++ API)
|
|
47
|
+
// and SessionOptionsAppendExecutionProvider (C API). For the old API, use COREMLFlags instead.
|
|
48
|
+
static const char* const kCoremlProviderOption_MLComputeUnits = "MLComputeUnits";
|
|
49
|
+
static const char* const kCoremlProviderOption_ModelFormat = "ModelFormat";
|
|
50
|
+
// same as COREML_FLAG_ONLY_ALLOW_STATIC_INPUT_SHAPES
|
|
51
|
+
static const char* const kCoremlProviderOption_RequireStaticInputShapes = "RequireStaticInputShapes";
|
|
52
|
+
static const char* const kCoremlProviderOption_EnableOnSubgraphs = "EnableOnSubgraphs";
|
|
53
|
+
// provided by https://developer.apple.com/documentation/coreml/mloptimizationhints-swift.struct/specializationstrategy-swift.property
|
|
54
|
+
// Core ML segments the model’s compute graph and specializes each segment for the target compute device.
|
|
55
|
+
// This process can affect the model loading time and the prediction latency.
|
|
56
|
+
// Use this option to tailor the specialization strategy for your model.
|
|
57
|
+
static const char* const kCoremlProviderOption_SpecializationStrategy = "SpecializationStrategy";
|
|
58
|
+
// Profile the Core ML MLComputePlan.
|
|
59
|
+
// This logs the hardware each operator is dispatched to and the estimated execution time.
|
|
60
|
+
// Intended for developer usage but provide useful diagnostic information if performance is not as expected.
|
|
61
|
+
static const char* const kCoremlProviderOption_ProfileComputePlan = "ProfileComputePlan";
|
|
62
|
+
// please refer to https://developer.apple.com/documentation/coreml/mlmodelconfiguration/allowlowprecisionaccumulationongpu
|
|
63
|
+
static const char* const kCoremlProviderOption_AllowLowPrecisionAccumulationOnGPU = "AllowLowPrecisionAccumulationOnGPU";
|
|
64
|
+
// Specify the directory to cache any CoreML models created from the ONNX model in.
|
|
65
|
+
// CoreML EP will convert onnx subgraph to CoreML model and save to disk.
|
|
66
|
+
// If this path is not specified, the model will be saved to a temp directory and deleted after the session is closed.
|
|
67
|
+
// otherwise, the model will be saved to the specified path and User should manage to delete the model.
|
|
68
|
+
|
|
69
|
+
// we do NOT detect if the onnx model has changed and no longer matches the cached model.
|
|
70
|
+
// the user should carefully manage the cache if modifying/replacing a model.
|
|
71
|
+
// The cache key is generated by
|
|
72
|
+
// 1. User provided key in metadata_props if found (preferred)
|
|
73
|
+
// 2. Hash of the model url the inference session was created with
|
|
74
|
+
// 3. Hash of the input/output names of the model
|
|
75
|
+
// Please find out how to set metadata_props in the onnxruntime API documentation. https://onnxruntime.ai/docs/execution-providers/CoreML-ExecutionProvider.html#configuration-options
|
|
76
|
+
static const char* const kCoremlProviderOption_ModelCacheDirectory = "ModelCacheDirectory";
|
|
77
|
+
|
|
78
|
+
// User provided cache-key in metadata_props.
|
|
79
|
+
static const char* const kCOREML_CACHE_KEY = "COREML_CACHE_KEY";
|
|
80
|
+
|
|
81
|
+
#ifdef __cplusplus
|
|
82
|
+
extern "C" {
|
|
83
|
+
#endif
|
|
84
|
+
|
|
85
|
+
ORT_EXPORT ORT_API_STATUS(OrtSessionOptionsAppendExecutionProvider_CoreML,
|
|
86
|
+
_In_ OrtSessionOptions* options, uint32_t coreml_flags);
|
|
87
|
+
|
|
88
|
+
#ifdef __cplusplus
|
|
89
|
+
}
|
|
90
|
+
#endif
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This value is used by some API functions to behave as this version of the header expects.
|
|
40
40
|
*/
|
|
41
|
-
#define ORT_API_VERSION
|
|
41
|
+
#define ORT_API_VERSION 21
|
|
42
42
|
|
|
43
43
|
#ifdef __cplusplus
|
|
44
44
|
extern "C" {
|
|
@@ -46,7 +46,7 @@ extern "C" {
|
|
|
46
46
|
|
|
47
47
|
//! @}
|
|
48
48
|
// SAL2 Definitions
|
|
49
|
-
#ifndef
|
|
49
|
+
#ifndef _MSC_VER
|
|
50
50
|
#define _In_
|
|
51
51
|
#define _In_z_
|
|
52
52
|
#define _In_opt_
|
|
@@ -626,8 +626,13 @@ typedef struct OrtMIGraphXProviderOptions {
|
|
|
626
626
|
} OrtMIGraphXProviderOptions;
|
|
627
627
|
|
|
628
628
|
/** \brief OpenVINO Provider Options
|
|
629
|
-
*
|
|
630
|
-
*
|
|
629
|
+
* \brief This Struct is frozen since ORT 1.13.0. Its maintained part of Legacy API for compatibility.
|
|
630
|
+
* \brief For latest OpenVINO Provider Options update to the ProviderOptions map.
|
|
631
|
+
* \brief Latest OpenVINO Provider Options are listed in the
|
|
632
|
+
* \htmlonly
|
|
633
|
+
* <a href="https://onnxruntime.ai/docs/execution-providers/OpenVINO-ExecutionProvider.html#summary-of-options">onnxruntime document.</a>
|
|
634
|
+
* \endhtmlonly
|
|
635
|
+
* \see OrtApi::SessionOptionsAppendExecutionProvider()
|
|
631
636
|
*/
|
|
632
637
|
typedef struct OrtOpenVINOProviderOptions {
|
|
633
638
|
#ifdef __cplusplus
|
|
@@ -645,7 +650,7 @@ typedef struct OrtOpenVINOProviderOptions {
|
|
|
645
650
|
* Valid settings are one of: "CPU_FP32", "CPU_FP16", "GPU_FP32", "GPU_FP16"
|
|
646
651
|
*/
|
|
647
652
|
const char* device_type;
|
|
648
|
-
unsigned char enable_npu_fast_compile;
|
|
653
|
+
unsigned char enable_npu_fast_compile; ///< 0 = disabled, nonzero = enabled
|
|
649
654
|
const char* device_id;
|
|
650
655
|
size_t num_of_threads; ///< 0 = Use default number of threads
|
|
651
656
|
const char* cache_dir; // path is set to empty by default
|
|
@@ -3660,8 +3665,19 @@ struct OrtApi {
|
|
|
3660
3665
|
* - "1": Enabled.
|
|
3661
3666
|
* "offload_graph_io_quantization": Offload graph input quantization and graph output dequantization to another
|
|
3662
3667
|
* execution provider (typically CPU EP).
|
|
3663
|
-
* - "0":
|
|
3668
|
+
* - "0": Disabled. QNN EP will handle quantization and dequantization of graph I/O.
|
|
3669
|
+
* - "1": Enabled. This is the default value.
|
|
3670
|
+
* "enable_htp_spill_fill_buffer": Enable HTP spill fill buffer setting. The flag is used while generating context binary.
|
|
3671
|
+
* - "0": Default. Disabled.
|
|
3672
|
+
* - "1": Enabled.
|
|
3673
|
+
* "enable_htp_shared_memory_allocator": Enable the QNN HTP shared memory allocator. Requires libcdsprpc.so/dll to
|
|
3674
|
+
* be available.
|
|
3675
|
+
* - "0": Default. Disabled.
|
|
3664
3676
|
* - "1": Enabled.
|
|
3677
|
+
* "dump_json_qnn_graph": Set to "1" to dump QNN graphs generated by QNN EP as JSON files. Each graph partition
|
|
3678
|
+
* assigned to QNN EP is dumped to a separate file.
|
|
3679
|
+
* "json_qnn_graph_dir": Directory in which to dump QNN JSON graphs. If not specified, QNN graphs are dumped in the
|
|
3680
|
+
* program's current working directory. Ignored if "dump_json_qnn_graph" is not set.
|
|
3665
3681
|
*
|
|
3666
3682
|
* SNPE supported keys:
|
|
3667
3683
|
* "runtime": SNPE runtime engine, options: "CPU", "CPU_FLOAT32", "GPU", "GPU_FLOAT32_16_HYBRID", "GPU_FLOAT16",
|
|
@@ -4607,6 +4623,8 @@ struct OrtApi {
|
|
|
4607
4623
|
* \param[in] num_keys
|
|
4608
4624
|
*
|
|
4609
4625
|
* \snippet{doc} snippets.dox OrtStatus Return Value
|
|
4626
|
+
*
|
|
4627
|
+
* \since Version 1.17.
|
|
4610
4628
|
*/
|
|
4611
4629
|
ORT_API2_STATUS(SessionOptionsAppendExecutionProvider_OpenVINO_V2,
|
|
4612
4630
|
_In_ OrtSessionOptions* options,
|
|
@@ -4624,6 +4642,8 @@ struct OrtApi {
|
|
|
4624
4642
|
* \param[in] num_keys
|
|
4625
4643
|
*
|
|
4626
4644
|
* \snippet{doc} snippets.dox OrtStatus Return Value
|
|
4645
|
+
*
|
|
4646
|
+
* \since Version 1.18.
|
|
4627
4647
|
*/
|
|
4628
4648
|
ORT_API2_STATUS(SessionOptionsAppendExecutionProvider_VitisAI,
|
|
4629
4649
|
_In_ OrtSessionOptions* options,
|
|
@@ -4637,7 +4657,10 @@ struct OrtApi {
|
|
|
4637
4657
|
* \param[in] mem_info OrtMemoryInfo instance
|
|
4638
4658
|
* \param[in] count_or_bytes How many bytes is this scratch buffer
|
|
4639
4659
|
* \param[out] out A pointer to the scrach buffer
|
|
4660
|
+
*
|
|
4640
4661
|
* \snippet{doc} snippets.dox OrtStatus Return Value
|
|
4662
|
+
*
|
|
4663
|
+
* \since Version 1.18.
|
|
4641
4664
|
*/
|
|
4642
4665
|
ORT_API2_STATUS(KernelContext_GetScratchBuffer, _In_ const OrtKernelContext* context, _In_ const OrtMemoryInfo* mem_info, _In_ size_t count_or_bytes, _Outptr_ void** out);
|
|
4643
4666
|
|
|
@@ -4648,6 +4671,8 @@ struct OrtApi {
|
|
|
4648
4671
|
* \param[out] out A pointer to OrtAllocator
|
|
4649
4672
|
*
|
|
4650
4673
|
* \snippet{doc} snippets.dox OrtStatus Return Value
|
|
4674
|
+
*
|
|
4675
|
+
* \since Version 1.18.
|
|
4651
4676
|
*/
|
|
4652
4677
|
ORT_API2_STATUS(KernelInfoGetAllocator, _In_ const OrtKernelInfo* info, _In_ OrtMemType mem_type, _Outptr_ OrtAllocator** out);
|
|
4653
4678
|
|
|
@@ -4669,6 +4694,8 @@ struct OrtApi {
|
|
|
4669
4694
|
* \param[in] num_external_initializer_files Number of external files
|
|
4670
4695
|
*
|
|
4671
4696
|
* \snippet{doc} snippets.dox OrtStatus Return Value
|
|
4697
|
+
*
|
|
4698
|
+
* \since Version 1.18.
|
|
4672
4699
|
*/
|
|
4673
4700
|
ORT_API2_STATUS(AddExternalInitializersFromFilesInMemory, _In_ OrtSessionOptions* options,
|
|
4674
4701
|
_In_reads_(num_external_initializer_files) const ORTCHAR_T* const* external_initializer_file_names,
|
|
@@ -4691,6 +4718,8 @@ struct OrtApi {
|
|
|
4691
4718
|
* OrtApi::ReleaseLoraAdapter.
|
|
4692
4719
|
*
|
|
4693
4720
|
* \snippet{doc} snippets.dox OrtStatus Return Value
|
|
4721
|
+
*
|
|
4722
|
+
* \since Version 1.20.
|
|
4694
4723
|
*/
|
|
4695
4724
|
ORT_API2_STATUS(CreateLoraAdapter, const ORTCHAR_T* adapter_file_path, _In_ OrtAllocator* allocator,
|
|
4696
4725
|
_Outptr_ OrtLoraAdapter** out);
|
|
@@ -4709,6 +4738,8 @@ struct OrtApi {
|
|
|
4709
4738
|
* OrtApi::ReleaseLoraAdapter.
|
|
4710
4739
|
*
|
|
4711
4740
|
* \snippet{doc} snippets.dox OrtStatus Return Value
|
|
4741
|
+
*
|
|
4742
|
+
* \since Version 1.20.
|
|
4712
4743
|
*/
|
|
4713
4744
|
ORT_API2_STATUS(CreateLoraAdapterFromArray, _In_ const void* bytes, size_t num_bytes, _In_ OrtAllocator* allocator,
|
|
4714
4745
|
_Outptr_ OrtLoraAdapter** out);
|
|
@@ -4730,6 +4761,8 @@ struct OrtApi {
|
|
|
4730
4761
|
* \param[in] adapter OrtLoraAdapter instance
|
|
4731
4762
|
*
|
|
4732
4763
|
* \snippet{doc} snippets.dox OrtStatus Return Value
|
|
4764
|
+
*
|
|
4765
|
+
* \since Version 1.20.
|
|
4733
4766
|
*/
|
|
4734
4767
|
ORT_API2_STATUS(RunOptionsAddActiveLoraAdapter, _Inout_ OrtRunOptions* options, _In_ const OrtLoraAdapter* adapter);
|
|
4735
4768
|
|
|
@@ -4748,6 +4781,8 @@ struct OrtApi {
|
|
|
4748
4781
|
* \param[in] kv_len Number of elements in the keys and values arrays
|
|
4749
4782
|
*
|
|
4750
4783
|
* \snippet{doc} snippets.dox OrtStatus Return Value
|
|
4784
|
+
*
|
|
4785
|
+
* \since Version 1.20.
|
|
4751
4786
|
*/
|
|
4752
4787
|
ORT_API2_STATUS(SetEpDynamicOptions, _Inout_ OrtSession* sess, _In_reads_(kv_len) const char* const* keys,
|
|
4753
4788
|
_In_reads_(kv_len) const char* const* values, _In_ size_t kv_len);
|