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
Scalar reduce like the example above is allowed in ONNX and can be executed by ONNXRuntime. But it will crash at tvm::relay::GetReduceAxes in TVM. Same things happens for min/max/mean/sum.
If TVM does not support scalar reduce (understandable as it is unnecessary in most cases and can be fixed in user code), I guess this should be an ONNX conversion issue.
The default is to reduce over all the dimensions of the input tensor if 'noop_with_empty_axes' is false, else act as an Identity op when 'noop_with_empty_axes' is true.
Scalar reduce like the example above is allowed in ONNX and can be executed by ONNXRuntime. But it will crash at
tvm::relay::GetReduceAxes
in TVM. Same things happens formin/max/mean/sum
.If TVM does not support scalar reduce (understandable as it is unnecessary in most cases and can be fixed in user code), I guess this should be an ONNX conversion issue.
In ONNX, if
axis
is not provided, it simply means flattening a tensor (including sclar tensor) into a scalar. https://github.com/onnx/onnx/blob/main/docs/Changelog.md#inputs-1---2-3cc: @masahi @AndrewZhaoLuo
The text was updated successfully, but these errors were encountered: