We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When compiling following model with TVM, it will error.
The model(with ONNX as frontend) with error is as follows, check bug.onnx in bug4.zip.
I think it is because ONNX allows attribute p in LpPool with a default value 2. Please check LpPool in ONNX: https://github.com/onnx/onnx/blob/master/docs/Operators.md#lppool
p
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 712, in _impl_v1 p = _expr.const(attr["p"], dtype) KeyError: 'p'
Python3, with tvm, onnx
tvm version: c31e338 Wed Dec 9 14:52:58 2020 +0900
c31e338
Download bug4.zip
Run python check.py.
python check.py
The text was updated successfully, but these errors were encountered:
[Relay][Frontend][Onnx] Set default value of p in LpPool as 2
6faf2ea
See apache#7241
I also created a corresponding PR for this issue: #7242
Sorry, something went wrong.
Closed with #8866
No branches or pull requests
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 bug4.zip.

I think it is because ONNX allows attribute
p
in LpPool with a default value 2. Please check LpPool in ONNX: https://github.com/onnx/onnx/blob/master/docs/Operators.md#lppoolError Log
How to reproduce
Environment
Python3, with tvm, onnx
tvm version:
c31e338
Wed Dec 9 14:52:58 2020 +0900Download
bug4.zip
Run
python check.py
.The text was updated successfully, but these errors were encountered: