onnx-tensorflow
onnx-tensorflow copied to clipboard
Conversion onnx-tf error
Dear all,
i'm trying to convert a .onnx model opset 12 to tensorflow. Using the onnx runtime the model works correctly, but if I try to convert it using the command:
onnx-tf convert -i retinanet2x.onnx -o retinanet.pb
the following error occurs:
ValueError: Shape must be rank 0 but is rank 1 for 'onnx_tf_prefix_If_1072/Switch' (op: 'Switch') with input shapes: [1], [1].
My environment settings are the following:
onnx 1.8.1
onnx-tf 1.7.0
onnxruntime 1.7.0
tensorflow 1.15.4
torch 1.8.0
Can you help me?
Best regards,
mdatres
Please share the onnx model file for debugging.