tensorflow-onnx
tensorflow-onnx copied to clipboard
Convert TensorFlow, Keras, Tensorflow.js and Tflite models to ONNX
**Describe the bug** I tried to convert tflite model to onnx model, and then do inference by onnxruntime python api. I got different inference results of tflite model and onnx...
In https://github.com/onnx/tensorflow-onnx/blob/1915fb52270856debc74ba5d28e332e46ccc1e1a/tools/onnx-optimize.py#L59 the `optimizer.optimize_graph()` method would eliminate infered shape. This PR adds the shape inference after model optimized. Signed-off-by: Deyu Huang
Hi, are the above ops to be supported, or am I running the command incorrectly? python -m tf2onnx.convert --saved-model saved_model --output model.onnx -v --target tensorrt --tag serve
I am unable to convert FSRCN SR model into .onnx format because of below error. Can Anyone please help me with this Use `tf.compat.v1.graph_util.extract_sub_graph` Failed to convert node 'model_5/conv2d_transpose_5/BiasAdd' (fct=)...
**Describe the bug** I converted tensorflow model to ONNX format, but I got this error `ValueError: make_sure failure: Initialized table b'' for node TempHashTable_Lookup/LookupTableFindV2 not found.` Same error: https://github.com/onnx/tensorflow-onnx/issues/1485#issue-869633065 **Urgency**...
I am trying to convert model created from TensorFlow Object Detection API from saved_model.pb to Onnx format. Unfortunately, next issue arrises: ValueError: StridedSlice: attribute new_axis_mask not supported [Here ](https://drive.google.com/drive/folders/1h9DDU1x7mTV3edQXi4_cUCxIDGjuEmYA?usp=sharing)you can...
It's related to the change: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
**Describe the bug** Conversion of a tf.function fails ([convert.from_function](https://github.com/onnx/tensorflow-onnx/blob/master/tf2onnx/convert.py#L507) throws unexpected exception [here](https://github.com/onnx/tensorflow-onnx/blob/master/tf2onnx/convert.py#L535)) in case the graph has no any inputs (i.e. when signature is an empty list). It seems...
**Describe the bug** The error in the title is produced when converting a tflite file to ONNX via `tf2onnx.convert`. The tflite file was was produced by converting a JAX function...
**Describe the bug** I believe I'm getting the same error as Meimin-Wang is in issue #1913. I run: ``` python -m tf2onnx.convert --opset 15 --input frozen_inference_graph.pb --output frozen_inference_graph.onnx --inputs encoded_image_string_tensor:0...