Skip to content

Commit fb2b283

Browse files
authored
Merge pull request #4 from doc-ai/tensorio-v0.6.1
update to tensorio v0.6.1
2 parents 6869fe2 + 7c01eb2 commit fb2b283

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ All this information appears in a bundle's *model.json* file. Let's have a look
146146
"license": "Apache 2.0",
147147
"model": {
148148
"file": "model.tflite",
149-
"quantized": false,
149+
"backend": "tflite",
150+
"quantized": false
150151
},
151152
"inputs": [
152153
{
@@ -239,6 +240,7 @@ Let's look at a basic image classification model and see how to use it in React
239240
"license": "Apache License. Version 2.0 http://www.apache.org/licenses/LICENSE-2.0",
240241
"model": {
241242
"file": "model.tflite",
243+
"backend": "tflite",
242244
"quantized": false,
243245
},
244246
"inputs": [

ios/RNTensorIO.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ - (NSString*)absolutePath:(NSString*)path {
196196
if ([self isAbsoluteFilepath:path]) {
197197
absolutePath = path;
198198
} else {
199-
if ([path.pathExtension isEqualToString:kTFModelBundleExtension]) {
199+
if ([path.pathExtension isEqualToString:TIOModelBundleExtension]) {
200200
path = [path stringByDeletingPathExtension];
201201
}
202-
absolutePath = [NSBundle.mainBundle pathForResource:path ofType:kTFModelBundleExtension];
202+
absolutePath = [NSBundle.mainBundle pathForResource:path ofType:TIOModelBundleExtension];
203203
}
204204

205205
return absolutePath;

ios/RNTensorIO.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Pod::Spec.new do |s|
33
s.name = 'RNTensorIO'
4-
s.version = '0.0.1'
4+
s.version = '0.3.0'
55
s.summary = 'Machine Learning for React Native with TensorIO'
66
s.description = 'Perform inference with TensorFlow Lite mondels in React Native'
77
s.homepage = 'https://github.com/doc-ai/react-native-tensorio'
@@ -16,4 +16,5 @@ Pod::Spec.new do |s|
1616

1717
s.dependency 'React'
1818
s.dependency 'TensorIO'
19+
s.dependency 'TensorIO/TFLite'
1920
end

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{
33
"name": "react-native-tensorio",
4-
"version": "0.2.0",
4+
"version": "0.3.0",
55
"description": "Machine Learning for React Native with TensorIO and TensorFlow Lite",
66
"main": "index.js",
77
"scripts": {

0 commit comments

Comments
 (0)