str_to_dev

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

Convert device string representation to native device type.

Parameters
  • dev_str (str) – The device string to conver to native device handle.

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

Returns

Native device handle.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty