com.github.asus4.onnxruntime 0.3.3 → 0.3.5
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
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
// Exclude ANE as sometimes this decrease performance
|
|
35
|
-
// https://developer.apple.com/documentation/coreml/mlcomputeunits?language=objc
|
|
36
|
-
// there are four compute units:
|
|
37
|
-
// MLComputeUnitsCPUAndNeuralEngine|MLComputeUnitsCPUAndGPU|MLComputeUnitsCPUOnly|MLComputeUnitsAll
|
|
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
|
-
#ifdef __cplusplus
|
|
45
|
-
extern "C" {
|
|
46
|
-
#endif
|
|
47
|
-
|
|
48
|
-
ORT_EXPORT ORT_API_STATUS(OrtSessionOptionsAppendExecutionProvider_CoreML,
|
|
49
|
-
_In_ OrtSessionOptions* options, uint32_t coreml_flags);
|
|
50
|
-
|
|
51
|
-
#ifdef __cplusplus
|
|
52
|
-
}
|
|
53
|
-
#endif
|
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
// Exclude ANE as sometimes this decrease performance
|
|
35
|
-
// https://developer.apple.com/documentation/coreml/mlcomputeunits?language=objc
|
|
36
|
-
// there are four compute units:
|
|
37
|
-
// MLComputeUnitsCPUAndNeuralEngine|MLComputeUnitsCPUAndGPU|MLComputeUnitsCPUOnly|MLComputeUnitsAll
|
|
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
|
-
#ifdef __cplusplus
|
|
45
|
-
extern "C" {
|
|
46
|
-
#endif
|
|
47
|
-
|
|
48
|
-
ORT_EXPORT ORT_API_STATUS(OrtSessionOptionsAppendExecutionProvider_CoreML,
|
|
49
|
-
_In_ OrtSessionOptions* options, uint32_t coreml_flags);
|
|
50
|
-
|
|
51
|
-
#ifdef __cplusplus
|
|
52
|
-
}
|
|
53
|
-
#endif
|
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
// Exclude ANE as sometimes this decrease performance
|
|
35
|
-
// https://developer.apple.com/documentation/coreml/mlcomputeunits?language=objc
|
|
36
|
-
// there are four compute units:
|
|
37
|
-
// MLComputeUnitsCPUAndNeuralEngine|MLComputeUnitsCPUAndGPU|MLComputeUnitsCPUOnly|MLComputeUnitsAll
|
|
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
|
-
#ifdef __cplusplus
|
|
45
|
-
extern "C" {
|
|
46
|
-
#endif
|
|
47
|
-
|
|
48
|
-
ORT_EXPORT ORT_API_STATUS(OrtSessionOptionsAppendExecutionProvider_CoreML,
|
|
49
|
-
_In_ OrtSessionOptions* options, uint32_t coreml_flags);
|
|
50
|
-
|
|
51
|
-
#ifdef __cplusplus
|
|
52
|
-
}
|
|
53
|
-
#endif
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|