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.
Files changed (66) hide show
  1. package/Plugins/Android/{onnxruntime-android.aar → onnxruntime.aar} +0 -0
  2. package/Plugins/Linux/x64/libonnxruntime.so +0 -0
  3. package/Plugins/Linux/x64/libonnxruntime.so.meta +17 -37
  4. package/Plugins/Windows/arm64/onnxruntime.dll +0 -0
  5. package/Plugins/Windows/arm64/onnxruntime.dll.meta +65 -0
  6. package/{Editor.meta → Plugins/Windows/arm64.meta} +1 -1
  7. package/Plugins/Windows/x64/onnxruntime.dll +0 -0
  8. package/Plugins/Windows/x64/onnxruntime.dll.meta +15 -35
  9. package/Plugins/Windows/x86/onnxruntime.dll +0 -0
  10. package/Plugins/Windows/x86/onnxruntime.dll.meta +65 -0
  11. package/{Editor/com.github.asus4.onnxruntime.Editor.asmdef.meta → Plugins/Windows/x86.meta} +3 -2
  12. package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/Info.plist +9 -7
  13. package/Plugins/iOS/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/coreml_provider_factory.h +90 -0
  14. package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/onnxruntime_c_api.h +41 -6
  15. package/Plugins/{iOS~/onnxruntime.xcframework/ios-arm64_x86_64-simulator → iOS/onnxruntime.xcframework/ios-arm64}/onnxruntime.framework/Headers/onnxruntime_cxx_api.h +35 -6
  16. 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
  17. 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
  18. package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Info.plist +2 -2
  19. package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/onnxruntime +0 -0
  20. package/Plugins/iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst/onnxruntime.framework/Versions/A/Headers/coreml_provider_factory.h +90 -0
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. package/Plugins/{iOS~/onnxruntime.xcframework/macos-arm64_x86_64 → iOS/onnxruntime.xcframework/ios-arm64_x86_64-maccatalyst}/onnxruntime.framework/Versions/A/onnxruntime +0 -0
  27. package/Plugins/iOS/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/Headers/coreml_provider_factory.h +90 -0
  28. package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/Headers/onnxruntime_c_api.h +41 -6
  29. 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
  30. package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/Headers/onnxruntime_cxx_inline.h +2 -2
  31. package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/Headers/onnxruntime_session_options_config_keys.h +53 -2
  32. 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
  33. package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/onnxruntime +0 -0
  34. package/Plugins/iOS/onnxruntime.xcframework.meta +61 -0
  35. package/Plugins/iOS.meta +8 -0
  36. package/Plugins/macOS/arm64/libonnxruntime.dylib +0 -0
  37. package/Plugins/macOS/{libonnxruntime.dylib.meta → arm64/libonnxruntime.dylib.meta} +20 -40
  38. package/Plugins/macOS/arm64.meta +8 -0
  39. package/Plugins/macOS/{libonnxruntime.dylib → x64/libonnxruntime.dylib} +0 -0
  40. package/Plugins/macOS/x64/libonnxruntime.dylib.meta +61 -0
  41. package/Plugins/macOS/x64.meta +8 -0
  42. package/README.md +9 -10
  43. package/Runtime/NativeMethods.shared.cs +1 -4
  44. package/Runtime/OrtValue.shared.cs +157 -1
  45. package/Runtime/SessionOptions.shared.cs +1 -42
  46. package/Runtime/Training/NativeTrainingMethods.shared.cs +1 -1
  47. package/package.json +1 -1
  48. package/Editor/OrtPostProcessBuild.cs +0 -77
  49. package/Editor/OrtPostProcessBuild.cs.meta +0 -11
  50. package/Editor/com.github.asus4.onnxruntime.Editor.asmdef +0 -16
  51. package/Plugins/iOS~/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/coreml_provider_factory.h +0 -53
  52. package/Plugins/iOS~/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.framework/Headers/coreml_provider_factory.h +0 -53
  53. package/Plugins/iOS~/onnxruntime.xcframework/macos-arm64_x86_64/onnxruntime.framework/Versions/A/Headers/coreml_provider_factory.h +0 -53
  54. /package/Plugins/Android/{onnxruntime-android.aar.meta → onnxruntime.aar.meta} +0 -0
  55. /package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/cpu_provider_factory.h +0 -0
  56. /package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/onnxruntime_float16.h +0 -0
  57. /package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/onnxruntime_lite_custom_op.h +0 -0
  58. /package/Plugins/{iOS~ → iOS}/onnxruntime.xcframework/ios-arm64/onnxruntime.framework/Headers/onnxruntime_run_options_config_keys.h +0 -0
  59. /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
  60. /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
  61. /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
  62. /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
  63. /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
  64. /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
  65. /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
  66. /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