Constant¶
Constant - 25¶
Version¶
name: Constant (GitHub)
domain:
mainsince_version:
25function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 25.
Summary¶
This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, or value_* must be specified.
Attributes¶
sparse_value - SPARSE_TENSOR :
The value for the elements of the output tensor in sparse format.
value - TENSOR :
The value for the elements of the output tensor.
value_float - FLOAT :
The value for the sole element for the scalar, float32, output tensor.
value_floats - FLOATS :
The values for the elements for the 1D, float32, output tensor.
value_int - INT :
The value for the sole element for the scalar, int64, output tensor.
value_ints - INTS :
The values for the elements for the 1D, int64, output tensor.
value_string - STRING :
The value for the sole element for the scalar, UTF-8 string, output tensor.
value_strings - STRINGS :
The values for the elements for the 1D, UTF-8 string, output tensor.
Outputs¶
output (heterogeneous) - T:
Output tensor containing the same value of the provided tensor.
Type Constraints¶
T in (
tensor(bfloat16),tensor(bool),tensor(complex128),tensor(complex64),tensor(double),tensor(float),tensor(float16),tensor(float4e2m1),tensor(float8e4m3fn),tensor(float8e4m3fnuz),tensor(float8e5m2),tensor(float8e5m2fnuz),tensor(float8e8m0),tensor(int16),tensor(int2),tensor(int32),tensor(int4),tensor(int64),tensor(int8),tensor(string),tensor(uint16),tensor(uint2),tensor(uint32),tensor(uint4),tensor(uint64),tensor(uint8)):Constrain input and output types to all tensor types.
Constant - 24¶
Version¶
name: Constant (GitHub)
domain:
mainsince_version:
24function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 24.
Summary¶
This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, or value_* must be specified.
Attributes¶
sparse_value - SPARSE_TENSOR :
The value for the elements of the output tensor in sparse format.
value - TENSOR :
The value for the elements of the output tensor.
value_float - FLOAT :
The value for the sole element for the scalar, float32, output tensor.
value_floats - FLOATS :
The values for the elements for the 1D, float32, output tensor.
value_int - INT :
The value for the sole element for the scalar, int64, output tensor.
value_ints - INTS :
The values for the elements for the 1D, int64, output tensor.
value_string - STRING :
The value for the sole element for the scalar, UTF-8 string, output tensor.
value_strings - STRINGS :
The values for the elements for the 1D, UTF-8 string, output tensor.
Outputs¶
output (heterogeneous) - T:
Output tensor containing the same value of the provided tensor.
Type Constraints¶
T in (
tensor(bfloat16),tensor(bool),tensor(complex128),tensor(complex64),tensor(double),tensor(float),tensor(float16),tensor(float4e2m1),tensor(float8e4m3fn),tensor(float8e4m3fnuz),tensor(float8e5m2),tensor(float8e5m2fnuz),tensor(float8e8m0),tensor(int16),tensor(int32),tensor(int4),tensor(int64),tensor(int8),tensor(string),tensor(uint16),tensor(uint32),tensor(uint4),tensor(uint64),tensor(uint8)):Constrain input and output types to all tensor types.
Constant - 23¶
Version¶
name: Constant (GitHub)
domain:
mainsince_version:
23function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 23.
Summary¶
This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, or value_* must be specified.
Attributes¶
sparse_value - SPARSE_TENSOR :
The value for the elements of the output tensor in sparse format.
value - TENSOR :
The value for the elements of the output tensor.
value_float - FLOAT :
The value for the sole element for the scalar, float32, output tensor.
value_floats - FLOATS :
The values for the elements for the 1D, float32, output tensor.
value_int - INT :
The value for the sole element for the scalar, int64, output tensor.
value_ints - INTS :
The values for the elements for the 1D, int64, output tensor.
value_string - STRING :
The value for the sole element for the scalar, UTF-8 string, output tensor.
value_strings - STRINGS :
The values for the elements for the 1D, UTF-8 string, output tensor.
Outputs¶
output (heterogeneous) - T:
Output tensor containing the same value of the provided tensor.
Type Constraints¶
T in (
tensor(bfloat16),tensor(bool),tensor(complex128),tensor(complex64),tensor(double),tensor(float),tensor(float16),tensor(float4e2m1),tensor(float8e4m3fn),tensor(float8e4m3fnuz),tensor(float8e5m2),tensor(float8e5m2fnuz),tensor(int16),tensor(int32),tensor(int4),tensor(int64),tensor(int8),tensor(string),tensor(uint16),tensor(uint32),tensor(uint4),tensor(uint64),tensor(uint8)):Constrain input and output types to all tensor types.
Constant - 21¶
Version¶
name: Constant (GitHub)
domain:
mainsince_version:
21function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 21.
Summary¶
This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, or value_* must be specified.
Attributes¶
sparse_value - SPARSE_TENSOR :
The value for the elements of the output tensor in sparse format.
value - TENSOR :
The value for the elements of the output tensor.
value_float - FLOAT :
The value for the sole element for the scalar, float32, output tensor.
value_floats - FLOATS :
The values for the elements for the 1D, float32, output tensor.
value_int - INT :
The value for the sole element for the scalar, int64, output tensor.
value_ints - INTS :
The values for the elements for the 1D, int64, output tensor.
value_string - STRING :
The value for the sole element for the scalar, UTF-8 string, output tensor.
value_strings - STRINGS :
The values for the elements for the 1D, UTF-8 string, output tensor.
Outputs¶
output (heterogeneous) - T:
Output tensor containing the same value of the provided tensor.
Type Constraints¶
T in (
tensor(bfloat16),tensor(bool),tensor(complex128),tensor(complex64),tensor(double),tensor(float),tensor(float16),tensor(float8e4m3fn),tensor(float8e4m3fnuz),tensor(float8e5m2),tensor(float8e5m2fnuz),tensor(int16),tensor(int32),tensor(int4),tensor(int64),tensor(int8),tensor(string),tensor(uint16),tensor(uint32),tensor(uint4),tensor(uint64),tensor(uint8)):Constrain input and output types to all tensor types.
Constant - 19¶
Version¶
name: Constant (GitHub)
domain:
mainsince_version:
19function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 19.
Summary¶
This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, or value_* must be specified.
Attributes¶
sparse_value - SPARSE_TENSOR :
The value for the elements of the output tensor in sparse format.
value - TENSOR :
The value for the elements of the output tensor.
value_float - FLOAT :
The value for the sole element for the scalar, float32, output tensor.
value_floats - FLOATS :
The values for the elements for the 1D, float32, output tensor.
value_int - INT :
The value for the sole element for the scalar, int64, output tensor.
value_ints - INTS :
The values for the elements for the 1D, int64, output tensor.
value_string - STRING :
The value for the sole element for the scalar, UTF-8 string, output tensor.
value_strings - STRINGS :
The values for the elements for the 1D, UTF-8 string, output tensor.
Outputs¶
output (heterogeneous) - T:
Output tensor containing the same value of the provided tensor.
Type Constraints¶
T in (
tensor(bfloat16),tensor(bool),tensor(complex128),tensor(complex64),tensor(double),tensor(float),tensor(float16),tensor(float8e4m3fn),tensor(float8e4m3fnuz),tensor(float8e5m2),tensor(float8e5m2fnuz),tensor(int16),tensor(int32),tensor(int64),tensor(int8),tensor(string),tensor(uint16),tensor(uint32),tensor(uint64),tensor(uint8)):Constrain input and output types to all tensor types.
Constant - 13¶
Version¶
name: Constant (GitHub)
domain:
mainsince_version:
13function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 13.
Summary¶
This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, or value_* must be specified.
Attributes¶
sparse_value - SPARSE_TENSOR :
The value for the elements of the output tensor in sparse format.
value - TENSOR :
The value for the elements of the output tensor.
value_float - FLOAT :
The value for the sole element for the scalar, float32, output tensor.
value_floats - FLOATS :
The values for the elements for the 1D, float32, output tensor.
value_int - INT :
The value for the sole element for the scalar, int64, output tensor.
value_ints - INTS :
The values for the elements for the 1D, int64, output tensor.
value_string - STRING :
The value for the sole element for the scalar, UTF-8 string, output tensor.
value_strings - STRINGS :
The values for the elements for the 1D, UTF-8 string, output tensor.
Outputs¶
output (heterogeneous) - T:
Output tensor containing the same value of the provided tensor.
Type Constraints¶
T in (
tensor(bfloat16),tensor(bool),tensor(complex128),tensor(complex64),tensor(double),tensor(float),tensor(float16),tensor(int16),tensor(int32),tensor(int64),tensor(int8),tensor(string),tensor(uint16),tensor(uint32),tensor(uint64),tensor(uint8)):Constrain input and output types to all tensor types.
Constant - 12¶
Version¶
name: Constant (GitHub)
domain:
mainsince_version:
12function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 12.
Summary¶
This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, or value_* must be specified.
Attributes¶
sparse_value - SPARSE_TENSOR :
The value for the elements of the output tensor in sparse format.
value - TENSOR :
The value for the elements of the output tensor.
value_float - FLOAT :
The value for the sole element for the scalar, float32, output tensor.
value_floats - FLOATS :
The values for the elements for the 1D, float32, output tensor.
value_int - INT :
The value for the sole element for the scalar, int64, output tensor.
value_ints - INTS :
The values for the elements for the 1D, int64, output tensor.
value_string - STRING :
The value for the sole element for the scalar, UTF-8 string, output tensor.
value_strings - STRINGS :
The values for the elements for the 1D, UTF-8 string, output tensor.
Outputs¶
output (heterogeneous) - T:
Output tensor containing the same value of the provided tensor.
Type Constraints¶
T in (
tensor(bool),tensor(complex128),tensor(complex64),tensor(double),tensor(float),tensor(float16),tensor(int16),tensor(int32),tensor(int64),tensor(int8),tensor(string),tensor(uint16),tensor(uint32),tensor(uint64),tensor(uint8)):Constrain input and output types to all tensor types.
Constant - 11¶
Version¶
name: Constant (GitHub)
domain:
mainsince_version:
11function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 11.
Summary¶
A constant tensor. Exactly one of the two attributes, either value or sparse_value, must be specified.
Attributes¶
sparse_value - SPARSE_TENSOR :
The value for the elements of the output tensor in sparse format.
value - TENSOR :
The value for the elements of the output tensor.
Outputs¶
output (heterogeneous) - T:
Output tensor containing the same value of the provided tensor.
Type Constraints¶
T in (
tensor(bool),tensor(complex128),tensor(complex64),tensor(double),tensor(float),tensor(float16),tensor(int16),tensor(int32),tensor(int64),tensor(int8),tensor(string),tensor(uint16),tensor(uint32),tensor(uint64),tensor(uint8)):Constrain input and output types to all tensor types.
Constant - 9¶
Version¶
name: Constant (GitHub)
domain:
mainsince_version:
9function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 9.
Summary¶
A constant tensor.
Attributes¶
value - TENSOR (required) :
The value for the elements of the output tensor.
Outputs¶
output (heterogeneous) - T:
Output tensor containing the same value of the provided tensor.
Type Constraints¶
T in (
tensor(bool),tensor(complex128),tensor(complex64),tensor(double),tensor(float),tensor(float16),tensor(int16),tensor(int32),tensor(int64),tensor(int8),tensor(string),tensor(uint16),tensor(uint32),tensor(uint64),tensor(uint8)):Constrain input and output types to all tensor types.
Constant - 1¶
Version¶
name: Constant (GitHub)
domain:
mainsince_version:
1function:
Falsesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 1.
Summary¶
A constant tensor.
Attributes¶
value - TENSOR (required) :
The value for the elements of the output tensor.
Outputs¶
output (heterogeneous) - T:
Output tensor containing the same value of the provided tensor.
Type Constraints¶
T in (
tensor(double),tensor(float),tensor(float16)):Constrain input and output types to float tensors.