torch.xpu.clock_rate#
- torch.xpu.clock_rate(device=None)[source]#
Return the GPU clock rate in MHz.
- Parameters:
device (torch.device, str or int, optional) – selected device. Uses the current device, given by
current_device(), ifNone(default).- Return type: