Cast#
Cast - 1#
Version
name: Cast (GitHub)
domain: main
since_version: 1
function:
support_level: SupportType.COMMON
shape inference: False
This version of the operator has been available since version 1.
Summary
Attributes
to - STRING (required) : The data type to which the elements of the input tensor are cast. Strictly must be one of the types from DataType enum in TensorProto
Inputs
input (heterogeneous) - T1:
Outputs
output (heterogeneous) - T2:
Type Constraints
T1 in ( tensor(bool), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) ): Constrain input types. Casting from strings and complex are not supported.
T2 in ( tensor(bool), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) ): Constrain output types. Casting to strings and complex are not supported.