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
The following model is a ConstantOfShape op with a constant input [-10].
Of course, ONNX does not allow ConstantOfShape input to be negative (https://onnx.ai/onnx/operators/onnx__ConstantOfShape.html#inputs).
However, in this case, this model can pass the check, it outputs an invalid dim: -10.
I think it should output at least be unknown :(
Bug Report
Description
The following model is a
ConstantOfShape
op with a constant input [-10].Of course, ONNX does not allow ConstantOfShape input to be negative (https://onnx.ai/onnx/operators/onnx__ConstantOfShape.html#inputs).
However, in this case, this model can pass the check, it outputs an invalid dim: -10.
I think it should output at least be unknown :(
Script
output
Acatually, in some cases, this output will cause all shape inferences of downstream operators to fail
The text was updated successfully, but these errors were encountered: