Skip to content

Commit d298298

Browse files
committed
Bump test package
1 parent b0f8e01 commit d298298

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ PODS:
7979
- hermes-engine/Pre-built (0.71.8)
8080
- libevent (2.1.12)
8181
- onnxruntime-c (1.15.0)
82-
- onnxruntime-react-native (1.16.0-test12):
82+
- onnxruntime-react-native (1.16.0-test15):
8383
- onnxruntime-c
8484
- React-Core
8585
- OpenSSL-Universal (1.1.1100)
@@ -631,7 +631,7 @@ SPEC CHECKSUMS:
631631
hermes-engine: 47986d26692ae75ee7a17ab049caee8864f855de
632632
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
633633
onnxruntime-c: e87399683ec19e3b812e13c6692882609a802b86
634-
onnxruntime-react-native: 49e73c9a756123e3b848ae679139d2ee12e86d63
634+
onnxruntime-react-native: f8718af3e35eb9ce34468b19c51de3c47b652f3c
635635
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
636636
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
637637
RCTRequired: 8af6a32dfc2b65ec82193c2dee6e1011ff22ac2a

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"image-encode": "^1.3.1",
2424
"mp3": "^0.1.0",
2525
"node-wav": "^0.0.2",
26-
"@fugood/onnxruntime-react-native": "~1.16.0-test12",
26+
"@fugood/onnxruntime-react-native": "~1.16.0-test15",
2727
"path-browserify": "^1.0.1",
2828
"react": "18.2.0",
2929
"react-native": "0.71.8",

patches/@xenova+transformers+2.0.1.patch

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/node_modules/@xenova/transformers/src/backends/onnx.js b/node_modules/@xenova/transformers/src/backends/onnx.js
2-
index 92cbfb2..b0fded6 100644
2+
index 92cbfb2..8e05e5c 100644
33
--- a/node_modules/@xenova/transformers/src/backends/onnx.js
44
+++ b/node_modules/@xenova/transformers/src/backends/onnx.js
5-
@@ -17,7 +17,7 @@
5+
@@ -17,16 +17,31 @@
66
*/
77

88
// NOTE: Import order matters here. We need to import `onnxruntime-node` before `onnxruntime-web`.
@@ -11,7 +11,8 @@ index 92cbfb2..b0fded6 100644
1111

1212
export const executionProviders = [
1313
// 'webgpu',
14-
@@ -25,8 +25,17 @@ export const executionProviders = [
14+
- 'wasm'
15+
+ 'wasm',
1516
];
1617

1718
if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
@@ -22,9 +23,15 @@ index 92cbfb2..b0fded6 100644
2223
+
2324
+ import('react-native').then(({ Platform }) => {
2425
+ if (Platform.OS === 'ios') {
25-
+ executionProviders.unshift('coreml');
26+
+ executionProviders.unshift('coreml', 'xnnpack');
2627
+ } else if (Platform.OS === 'android') {
27-
+ executionProviders.unshift('nnapi');
28+
+ executionProviders.unshift(
29+
+ {
30+
+ name: 'nnapi',
31+
+ useFP16: true,
32+
+ },
33+
+ 'xnnpack',
34+
+ );
2835
+ }
2936
+ });
3037

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,18 +1191,18 @@
11911191
dependencies:
11921192
"@flyskywhy/react-native-browser-polyfill" "^2.0.1"
11931193

1194-
"@fugood/onnxruntime-common@~1.16.0-test2":
1195-
version "1.16.0-test2"
1196-
resolved "https://registry.yarnpkg.com/@fugood/onnxruntime-common/-/onnxruntime-common-1.16.0-test2.tgz#2f38f0af077a1da67e60f7f4d93dedfcd96f25c4"
1197-
integrity sha512-Re0pZ8SP+xf3r440+wBolNUKgYlWb5/j73uyzOvs6I1I7TmmcGmBLwa+6AN7dJj2hfnIhNnwzbiU5HLqaMzWbg==
1194+
"@fugood/onnxruntime-common@~1.16.0-test3":
1195+
version "1.16.0-test3"
1196+
resolved "https://registry.yarnpkg.com/@fugood/onnxruntime-common/-/onnxruntime-common-1.16.0-test3.tgz#d872976db129ca5617c94d66dce5827ee8955bda"
1197+
integrity sha512-TZoFr5cOvw6R5FFWZgp3bN6IVq0VagvmlI2HQQEGrHXK4xa9BhacCE0KibBodcsbEdPwbdGaCBs4onJUu4ymuA==
11981198

1199-
"@fugood/onnxruntime-react-native@~1.16.0-test12":
1200-
version "1.16.0-test12"
1201-
resolved "https://registry.yarnpkg.com/@fugood/onnxruntime-react-native/-/onnxruntime-react-native-1.16.0-test12.tgz#531622cfca496ac4fc89631b6f22bed4a10d1a54"
1202-
integrity sha512-DtFjJuTso+EN1Dr/oT2qnrse9pS8MfnFaTc8B4dDS8fmtU2QzdGYNsly70CQxm/aUA9zixXGFVQ75UNI53+yCQ==
1199+
"@fugood/onnxruntime-react-native@~1.16.0-test15":
1200+
version "1.16.0-test15"
1201+
resolved "https://registry.yarnpkg.com/@fugood/onnxruntime-react-native/-/onnxruntime-react-native-1.16.0-test15.tgz#bc2fbcc4d2f3787b59ff9bdb70e28b78809014b8"
1202+
integrity sha512-N8VglCCZsQ2F0+j++pnPS7BIr2Z0vOXEFjeDy+RJgvjQ+D4FjjIP1U95yWPjmHYei+MbUl6CVNp99i+tEgM6FQ==
12031203
dependencies:
12041204
"@expo/config-plugins" "^4.1.5"
1205-
"@fugood/onnxruntime-common" "~1.16.0-test2"
1205+
"@fugood/onnxruntime-common" "~1.16.0-test3"
12061206
buffer "^6.0.3"
12071207

12081208
"@fugood/react-native-audio-pcm-stream@^1.1.4":

0 commit comments

Comments
 (0)