Coerces a value to a TensorDataType. Accepts data type strings
(e.g. "f32", "i64", "i1") or existing TensorDataType objects (they are returned unchanged).
Details
This is implemented via the generic stablehlo::as_dtype().
Coerces a value to a TensorDataType. Accepts data type strings
(e.g. "f32", "i64", "i1") or existing TensorDataType objects (they are returned unchanged).
This is implemented via the generic stablehlo::as_dtype().