dtype_to_str

ivy.dtype_to_str(dtype_in: ivy.Dtype, f: Optional[ivy.Framework] = None) → str[source]

Convert native data type to string representation.

Parameters
  • dtype_in (data type) – The data type to convert to string.

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.

Returns

Device string e.g. ‘float32’.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty