File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" : [
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff line change 11
22Pod ::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'
1920end
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments