dtype

ivy.dtype(x, f=None)[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