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