Comments (4)
hi @LiangZhaoSRA ,
If possible , can you share me the .tflite file please
from tensorflow.
@sawantkumar Attaches is the tflite file. Thanks.
model.zip
from tensorflow.
Hi @LiangZhaoSRA ,
I inspected your model using custom code and I found out that your model has dynamic sized tensors . If possible can you provide me the model conversion code.
Dynamic tensors found:
Name: Where_101;StatefulPartitionedCall/Where_101, Shape: [0 1]
Name: Squeeze_83;StatefulPartitionedCall/Squeeze_83, Shape: [0]
Name: GatherV2_83;StatefulPartitionedCall/GatherV2_83;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_78;StatefulPartitionedCall/GatherV2_78;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_79;StatefulPartitionedCall/GatherV2_79;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_71;StatefulPartitionedCall/GatherV2_71;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_66;StatefulPartitionedCall/GatherV2_66;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_67;StatefulPartitionedCall/GatherV2_67;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_59;StatefulPartitionedCall/GatherV2_59;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_54;StatefulPartitionedCall/GatherV2_54;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_55;StatefulPartitionedCall/GatherV2_55;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_12;StatefulPartitionedCall/GatherV2_12;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_13;StatefulPartitionedCall/GatherV2_13;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_26;StatefulPartitionedCall/GatherV2_26;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_27;StatefulPartitionedCall/GatherV2_27;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_40;StatefulPartitionedCall/GatherV2_40;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_41;StatefulPartitionedCall/GatherV2_41;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_5;StatefulPartitionedCall/GatherV2_5;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2;StatefulPartitionedCall/GatherV2;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_1;StatefulPartitionedCall/GatherV2_1;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_47;StatefulPartitionedCall/GatherV2_47;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_42;StatefulPartitionedCall/GatherV2_42;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
Name: GatherV2_43;StatefulPartitionedCall/GatherV2_43;GatherV2_99/axis;StatefulPartitionedCall/GatherV2_99/axis, Shape: [0]
from tensorflow.
Hi Sawant,
I converted the torch model to tflite via torch to onnx, onnx to tensorflow and tensorflow to tflite. Attached are the scripts for model conversion. Please let me know if you have any questions. Thanks.
tr2lite.zip
from tensorflow.
Related Issues (20)
- Build from source C doesn't produce .tar.gz archive HOT 1
- Aborted (core dumped) in `tf.raw_ops.ResourceSparseApplyMomentum` HOT 3
- Aborted (core dumped) in `tf.raw_ops.ResourceApplyFtrl/tf.raw_ops.ResourceApplyFtrlV2/tf.raw_ops.ResourceSparseApplyFtrl/tf.raw_ops.ResourceSparseApplyFtrlV2`
- Aborted (core dumped) in `tf.raw_ops.ResourceApplyKerasMomentum/tf.raw_ops.ResourceSparseApplyKerasMomentum` HOT 1
- Aborted (core dumped) in `tf.raw_ops.ResourceApplyPowerSign` HOT 3
- Aborted (core dumped) in `tf.raw_ops.ResourceApplyRMSProp/tf.raw_ops.ResourceSparseApplyRMSProp` HOT 1
- Aborted (core dumped) in `tf.raw_ops.ResourceSparseApplyAdadelta/tf.raw_ops.ResourceApplyAdadelta` HOT 1
- Aborted (core dumped) in `tf.raw_ops.ResourceSparseApplyAdagrad/tf.raw_ops.ResourceSparseApplyAdagradDA/tf.raw_ops.ResourceSparseApplyAdagradV2` HOT 1
- Aborted (core dumped) in `tf.raw_ops.ResourceApplyAdagrad/tf.raw_ops.ResourceApplyAdagradDA/tf.raw_ops.ResourceApplyAdagradV2`
- Aborted (core dumped) in `tf.raw_ops.ResourceApplyCenteredRMSProp/tf.raw_ops.ResourceSparseApplyCenteredRMSProp` HOT 1
- Aborted (core dumped) in `tf.raw_ops.ResourceSparseApplyProximalAdagrad` HOT 3
- Aborted (core dumped) in `tf.raw_ops.ResourceApplyAdaMax/tf.raw_ops.ResourceApplyAdam/tf.raw_ops.ResourceApplyAdamWithAmsgrad`
- Aborted (core dumped) in `tf.raw_ops.ResourceApplyAddSign` HOT 3
- Failed to build TF Lite benchmark tool on Windows
- The signatures in SavedModel do not contain serving_default when a subclass of the keras model has multiple inputs HOT 2
- MobileNetV3 quantization HOT 5
- Crash in `tf.raw_ops.ResizeNearestNeighbor/ResizeNearestNeighborGrad/ResizeArea/ResizeBicubic/ResizeBilinear` HOT 3
- Title: TensorFlow/Keras Integration Error: A KerasTensor cannot be used as input to a TensorFlow function HOT 1
- Add stop_evaluating attribute to Model class and add associated modification to evaluate method HOT 1
- Compilation of mlir:tf-opt fails with error "The repository '@llvm_zlib' could not be resolved" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow.