You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handlers\backend\resize.py doesn't work handle tensors with unknown shapes well.
The fix in #1017 does not seem to be applicable here.
This is the error that I get:
ValueError: in user code:
File "c:\users\dirk\extrepos\onnx-tensorflow\onnx_tf\backend_tf_module.py", line 99, in __call__ *
output_ops = self.backend._onnx_node_to_tensorflow_op(onnx_node,
File "c:\users\dirk\extrepos\onnx-tensorflow\onnx_tf\backend.py", line 347, in _onnx_node_to_tensorflow_op *
return handler.handle(node, tensor_dict=tensor_dict, strict=strict)
File "c:\users\dirk\extrepos\onnx-tensorflow\onnx_tf\handlers\handler.py", line 58, in handle *
cls.args_check(node, **kwargs)
File "c:\users\dirk\extrepos\onnx-tensorflow\onnx_tf\handlers\backend\resize.py", line 68, in args_check *
x_shape = x.get_shape().as_list()
ValueError: as_list() is not defined on an unknown TensorShape.
Describe the bug
handlers\backend\resize.py doesn't work handle tensors with unknown shapes well.
The fix in #1017 does not seem to be applicable here.
This is the error that I get:
To Reproduce
Run this code with
Onnx model:
https://drive.google.com/file/d/1Tnl6X0k0IuWgJWNkx8AyqsDZH7pSF_1E/view?usp=sharing
Python, ONNX, ONNX-TF, Tensorflow version
Additional context
The model is taken straight from:
torchvision.models.detection.faster_rcnn.fasterrcnn_resnet50_fpn
The text was updated successfully, but these errors were encountered: