memory_on_dev(dev_str: str) → float¶
Get the total amount of memory for a given device string. In case of CPU, the total RAM is returned.
dev_str (str) – The device string to conver to native device handle.
The total memory on the device in GB.