dtype

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

Get the data type for input array x.

Parameters
  • x (array) – Tensor for which to get the data type.

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

Returns

Data type of the array


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty