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
value : tensor (required)
The value for the elements of the output tensor.
This is misleading as it sounds like it is a scalar. From the example code and the fact, that no shape is given as an input the specification should read:
value : T (required)
The value of the output tensor.
More general: In ConstantOfShape the same name tensor is used. Shouldn't it be always T<x> with an appropriate type constraint?
The text was updated successfully, but these errors were encountered:
That's how I understood it too especially with the Python example. But ONNX is a specification first and foremost and the specification is confusing/unclear ("The value [singular] for the elements [plural]..."). So the request is to make it more clear.
Additionally why is "tensor" used for the specification and not the more formal "T" with contraints as in most other places? This would also allow for automatic validation.
https://github.com/onnx/onnx/blob/master/docs/Operators.md#constant defines the attribute of this operator as
This is misleading as it sounds like it is a scalar. From the example code and the fact, that no shape is given as an input the specification should read:
More general: In ConstantOfShape the same name
tensor
is used. Shouldn't it be alwaysT<x>
with an appropriate type constraint?The text was updated successfully, but these errors were encountered: