dev_util#
- ivy.dev_util(device, /)[source]#
Get the current utilization (%) for a given device.
- Parameters:
device (
Union
[Device
,NativeDevice
]) – The device string of the device to query utilization for.- Return type:
float
- Returns:
ret – The device utilization (%)
Example
>>> ivy.dev_util('cpu') 13.4 >>> ivy.dev_util('gpu:0') 7.8 >>> ivy.dev_util('cpu') 93.4 >>> ivy.dev_util('gpu:2') 57.4 >>> ivy.dev_util('cpu') 84.2