used_mem_on_dev

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

Get the used memory (in GB) 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 used memory on the device in GB.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty