dtype_str

ivy.dtype_str(x: ivy.NativeArray, f: Optional[ivy.Framework] = None) → str[source]

Get the data type string for input array x.

Parameters
  • x (array) – Tensor for which to get the data type 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