dev Union[ivy.Array, ivy.NativeArray], f: Optional[ivy.Framework] = None) → ivy.Device[source]

Get the native device handle for input array x.

  • x (array) – Tensor for which to get the device handle.

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


Device handle for the array, in native framework format.

Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty