Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [Relay] Error when compiling a simple ONNX model with Abs and PRelu #7203

Closed
luyaor opened this issue Jan 4, 2021 · 1 comment
Closed
Assignees

Comments

@luyaor
Copy link
Contributor

luyaor commented Jan 4, 2021

Description

When compiling following model with TVM, it will error.

The model(with ONNX as frontend) with error is as follows, check bug.onnx in bug3.zip

image

Error Log

Traceback (most recent call last):
  File "check.py", line 11, in <module>
    mod, params = relay.frontend.from_onnx(onnx_model, {})
  File "/Users/luyaor/Documents/tvm/python/tvm/relay/frontend/onnx.py", line 2806, in from_onnx
    mod, params = g.from_onnx(graph, opset, freeze_params)
  File "/Users/luyaor/Documents/tvm/python/tvm/relay/frontend/onnx.py", line 2613, in from_onnx
    op = self._convert_operator(op_name, inputs, attr, opset)
  File "/Users/luyaor/Documents/tvm/python/tvm/relay/frontend/onnx.py", line 2721, in _convert_operator
    sym = convert_map[op_name](inputs, attrs, self._params)
  File "/Users/luyaor/Documents/tvm/python/tvm/relay/frontend/onnx.py", line 820, in _impl_v1
    input_channels = infer_shape(inputs[0])[1]
IndexError: tuple index out of range

How to reproduce

Environment

Python3, with tvm, onnx

tvm version: c31e338 Wed Dec 9 14:52:58 2020 +0900

  1. Download bug3.zip

  2. Run python check.py.

@luyaor luyaor changed the title [Bug] [Relay] Error when compiling a simple ONNX model [Bug] [Relay] Error when compiling a simple ONNX model with Abs and PRelu Jan 4, 2021
@mbrookhart mbrookhart self-assigned this Jan 5, 2021
@jwfromm
Copy link
Contributor

jwfromm commented Jan 5, 2021

This bug is also fixed in #7208 and was caused by the same issue as #7202.

@masahi masahi closed this as completed Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants