used_mem_on_dev(dev_str: str, process_specific=False) → float¶
Get the used memory (in GB) for a given device string. In case of CPU, the used RAM is returned.
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.
The used memory on the device in GB.