You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "Civitasv (via GitHub)" <gi...@apache.org> on 2023/07/14 08:04:03 UTC
[GitHub] [tvm] Civitasv opened a new issue, #15316: [Bug] [Unity] [Frontend] [ONNX] Gather: ValueError: Need to fix this case.
Civitasv opened a new issue, #15316:
URL: https://github.com/apache/tvm/issues/15316
Here's part of my ONNX model:

One of the input to Gather op has type of `relax.ShapeExpr`.
### Expected behavior
It should be imported successfully.
### Actual behavior
Errors as follow:
```txt
Traceback (most recent call last):
ir_mod = from_onnx(model, shape_dict=input_shape_dict, **attrs)
File "/home/xxx/xxx/tvm/python/tvm/relax/frontend/onnx/onnx_frontend.py", line 2191, in from_onnx
return g.from_onnx(graph, opset)
File "/home/xxx/xxx/tvm/python/tvm/relax/frontend/onnx/onnx_frontend.py", line 1850, in from_onnx
self._construct_nodes(graph)
File "/home/xxx/xxx/tvm/python/tvm/relax/frontend/onnx/onnx_frontend.py", line 2001, in _construct_nodes
op = self._convert_operator(op_name, inputs, attr, self.opset)
File "/home/xxx/xxx/tvm/python/tvm/relax/frontend/onnx/onnx_frontend.py", line 2097, in _convert_operator
sym = op_function(self.bb, inputs, attrs, [self._nodes, self._params])
File "/home/xxx/xxx/tvm/python/tvm/relax/frontend/onnx/onnx_frontend.py", line 358, in _impl_v13
raise ValueError("Need to fix this case.")
ValueError: Need to fix this case.
[15:55:15] /home/xxx/xxx/tvm/src/relax/ir/block_builder.cc:64: Warning: BlockBuilder destroyed with remaining blocks!
```
### Environment
OS: Ubuntu 20.04
TVM: almost latest version of unity branch
### Triage
* needs-triage
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] Civitasv commented on issue #15316: [Bug] [Unity] [Frontend] [ONNX] Gather: ValueError: Need to fix this case.
Posted by "Civitasv (via GitHub)" <gi...@apache.org>.
Civitasv commented on issue #15316:
URL: https://github.com/apache/tvm/issues/15316#issuecomment-1637657402
Sorry, it's not because onnx frontend, the reason is I have a mistake on input shape dict.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] Civitasv closed issue #15316: [Bug] [Unity] [Frontend] [ONNX] Gather: ValueError: Need to fix this case.
Posted by "Civitasv (via GitHub)" <gi...@apache.org>.
Civitasv closed issue #15316: [Bug] [Unity] [Frontend] [ONNX] Gather: ValueError: Need to fix this case.
URL: https://github.com/apache/tvm/issues/15316
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org