onnx-tensorflow icon indicating copy to clipboard operation
onnx-tensorflow copied to clipboard

iterating over `tf.Tensor` is not allowed: AutoGraph did convert this function. This might indicate you are trying to use an unsupported feature.

Open Adhithya-tech opened this issue 4 years ago • 3 comments

Describe the bug iterating over tf.Tensor is not allowed: AutoGraph did convert this function. This might indicate you are trying to use an unsupported feature. A clear and concise description of what the bug is.

To Reproduce import onnx from onnx_tf.backend import prepare

onnx_model = onnx.load("FasterRCNN.onnx") # load onnx model tf_rep = prepare(onnx_model) tf_rep.export_graph("frcnn_resnet.pb") Please give us instructions to reproduce your problem.

A self-contained piece of code that can demonstrate the problem is required.

Please do not expect us to have PyTorch, Caffe2 installed.

If a model exported from PyTorch and Caffe2 is having trouble in ONNX-TF, use the next section to attach the model.

ONNX model file

If applicable, attach the onnx model file in question using Gist, DropBox or Google Drive.

Python, ONNX, ONNX-TF, Tensorflow version

This section can be obtained by running get_version.py from util folder.

  • Python version:
  • ONNX version:
  • ONNX-TF version:
  • Tensorflow version:

Additional context

Add any other context about the problem here.

Adhithya-tech avatar Mar 25 '21 10:03 Adhithya-tech

Please share FasterRCNN.onnx file for debugging.

chinhuang007 avatar Mar 25 '21 17:03 chinhuang007

I used the pre-trained onnx model from the model zoo to convert it to tensorflow

Adhithya-tech avatar Mar 26 '21 03:03 Adhithya-tech

you can upgrade tensorflow version, and upgrade onnx_tf, onnx, tensorflow-probability

lucy3589 avatar Sep 21 '22 08:09 lucy3589