percent_used_mem_on_dev

ivy.percent_used_mem_on_dev(dev_str: str, process_specific=False) → float[source]

Get the percentage used memory for a given device string. In case of CPU, the used RAM is returned.

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

  • process_specific (bool, optional) – Whether the check the memory used by this python process alone. Default is False.

Returns

The percentage used memory on the device.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty