torch.xpu.utilization
- torch.xpu.utilization(device=None)
Return the GPU engine utilization as a percentage.
The value is computed by dividing the active-time delta by the time delta between two engine-activity reads separated by a 100ms sampling interval.
- Parameters:
device (torch.device, ) – selected device. Uses the current device, given by , if (default).