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
Filing this ticket to request support for NonZero ONNX operator which has been available since version 9 of the default ONNX operator set. Since PyTorch 1.2, ONNX exports with opset 9 as default (And currently Pytorch only exports with 9 and 10 opset versions).
Unless there is some work around this deficiency I cannot use my model with the latest version ( master@e6ff3f701b2bf3e2204709aea392b0abdf6a85d0).
Here is a small model to recreate the issue: trouble.zip. Zip includes onnx, onnxtxt and graph files.
rroot@future:/workspace# /usr/bin/python3 /workspace/trouble_onnx.py
Traceback (most recent call last):
File "/workspace/trouble_onnx.py", line 15, in <module>
mod, params = relay.frontend.from_onnx(onnx_model, shape_dict)
File "/workspace/python/tvm/relay/frontend/onnx.py", line 1601, in from_onnx
mod, params = g.from_onnx(graph, opset)
File "/workspace/python/tvm/relay/frontend/onnx.py", line 1406, in from_onnx
raise tvm.error.OpNotImplemented(msg)
tvm.error.OpNotImplemented: The following operators are not supported for frontend ONNX: NonZero
Please note this onnx model will also fail with missing Expand operator for the tvm 0.6 version but this has been fixed by: #4483
The text was updated successfully, but these errors were encountered:
Filing this ticket to request support for NonZero ONNX operator which has been available since version 9 of the default ONNX operator set. Since PyTorch 1.2, ONNX exports with opset 9 as default (And currently Pytorch only exports with 9 and 10 opset versions).
Unless there is some work around this deficiency I cannot use my model with the latest version ( master@e6ff3f701b2bf3e2204709aea392b0abdf6a85d0).
Here is a small model to recreate the issue:
trouble.zip. Zip includes onnx, onnxtxt and graph files.
Here is python code to try with:
Here is the error message:
Please note this onnx model will also fail with missing Expand operator for the tvm 0.6 version but this has been fixed by: #4483
The text was updated successfully, but these errors were encountered: