dev_to_str

ivy.dev_to_str(dev_in: ivy.Device, f: Optional[ivy.Framework] = None) → str[source]

Convert native data type to string representation.

Parameters
  • dev_in (device handle) – The device handle to convert to string.

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

Returns

Device string e.g. ‘cuda:0’.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty