0x00-pl commented on PR #11606:
URL: https://github.com/apache/tvm/pull/11606#issuecomment-1488075553
```
# Get axis and unpack scalar
constant_axis = int(inputs[1].data.numpy()[0])
```
https://github.com/apache/tvm/blame/b3a5e18f6f096c2828512ae56f2e40261350c8b3/python/tvm/relay/frontend/onnx.py#L3164
It seems this line does not check `inputs[1].data.numpy()` has more than one
element. for example of ReduceSum:

--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]