torch.xpu.power_draw
- torch.xpu.power_draw(device=None)
Return the GPU card power draw in watts.
The value is computed by dividing the energy delta by the time delta between two energy-counter reads separated by a 100ms sampling interval.
- Parameters:
device (torch.device, str or int, optional) – selected device. Uses the current device, given by
current_device(), ifNone(default).- Return type: