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
Continuing issue #627, I failed to convert the attached toy model that includes a resize layer.
When I try to run "onnx2tf -i toy_with_constant_and_resize.onnx -osd -nuo" I get the following error -
TypeError: Could not build a TypeSpec for KerasTensor(type_spec=TensorSpec(shape=(1, None, None, 64), dtype=tf.float32, name=None), name='tf.compat.v1.image.resize_nearest_neighbor/ResizeNearestNeighbor:0', description="created by layer 'tf.compat.v1.image.resize_nearest_neighbor'") of unsupported type <class 'keras.src.engine.keras_tensor.KerasTensor'>.
Issue Type
Others
OS
Linux
onnx2tf version number
1.17.5
onnx version number
1.14.0
onnxruntime version number
1.15.1
onnxsim (onnx_simplifier) version number
0.4.33
tensorflow version number
2.14.0-rc1
Download URL for ONNX
toy_with_constant_and_resize.onnx.zip
Parameter Replacement JSON
Description
Thank you very much for your contribution!
Continuing issue #627, I failed to convert the attached toy model that includes a resize layer.
When I try to run "onnx2tf -i toy_with_constant_and_resize.onnx -osd -nuo" I get the following error -
TypeError: Could not build a TypeSpec for KerasTensor(type_spec=TensorSpec(shape=(1, None, None, 64), dtype=tf.float32, name=None), name='tf.compat.v1.image.resize_nearest_neighbor/ResizeNearestNeighbor:0', description="created by layer 'tf.compat.v1.image.resize_nearest_neighbor'") of unsupported type <class 'keras.src.engine.keras_tensor.KerasTensor'>.
The reason I want to use the flag -nuo is your comment in https://github.com/PINTO0309/onnx2tf/pull/628/files, for preserving constant outputs.
The text was updated successfully, but these errors were encountered: