onnx / onnx-tensorflow

Tensorflow Backend for ONNX
Other
1.26k stars 298 forks source link

{'error': 'indices = 1 is not in [0, 1)\n\t [[{{function_node __inference___call___5783}}{{node onnx_tf_prefix_Gather_10}}]]'} #1037

Open gallupliu opened 2 years ago

gallupliu commented 2 years ago

Describe the bug

When using PB model to load locally, it can be predicted normally, but TF serving reports an error,as follow: {'error': 'indices = 1 is not in [0, 1)\n\t [[{{function_node inference__call5783}}{{node onnx_tf_prefix_Gather_10}}]]'}

To Reproduce

check vesion is not work

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.

Additional context

Add any other context about the problem here.