question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error in converting onnx models to tensorflow

See original GitHub issue

I tried onnx-tf on the models in the models folder but got the error BackendIsNotSupposedToImplementIt: FusedConv is not implemented. Any ideas how this can be fixed? Thanks.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jeffxtangcommented, Oct 28, 2022

Btw, using the model file in the zip of #48, this converts from ONNX to TF: onnx-tf convert -i lm_model1.onnx -o lm_model1.pb

This converts from TF to tflite:

import tensorflow as tf
converter = tf.compat.v1.lite.TFLiteConverter.from_saved_model('lm_model1.pb')

converter.experimental_new_converter = True
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS,
                                       tf.lite.OpsSet.SELECT_TF_OPS]

tf_lite_model = converter.convert()
open('lm_model1.tflite', 'wb').write(tf_lite_model)
1reaction
emilianavtcommented, Oct 28, 2022

I believe the names are “input” and “output”, but if you load the model with onnxruntime, you should also be able to query them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · onnx/onnx-tensorflow - GitHub
Export tensorflow lite model don't use onnx model input names and output names ... Error converting ONNX to TF file: Cannot take the...
Read more >
Why does this conversion of an onnx model to tensorflow ...
I am working on converting an existing Pytorch model into a tf-lite model to see if it can speed up inference time and...
Read more >
KeyError: 'Resize' Error in converting from ONNX model to keras
I am trying to convert an ONNX model to a Keras model using onnx2keras, so that I can implement this: ...
Read more >
ONNX to TF-Lite Model Conversion
This tutorial describes how to convert an ONNX formatted model file into a format that can execute on an embedded device using Tensorflow-Lite...
Read more >
I am trying to convert the ONNX SSD mobilnet v3 model into ...
I converted the tf ssd mobilnet v3 frozen graph into onnx model on jetson xavier. ... ERROR: failed to build the TensorRT engine!...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found