Constant
Description
Constructs a constant tensor.
Attribute
value (mandatory): element value of the output tensor. The data type can be float, float16, bfloat16, int4, int8, int16, int32, int64, uint8, uint16, uint32, uint64, bool, double.
Output
y: The output tensor contains the same value as the provided tensor. The data type can be float, float16, bfloat16, int4, int8, int16, int32, int64, uint8, uint16, uint32, uint64, bool or double.
Constraints
The value does not support the sparse format.
ONNX Opset Support
Opset v8/v9/v10/v11/v12/v13
Parent topic: Supported ONNX Operators