torch.xpu.device_memory_used
- torch.xpu.device_memory_used(device=None)
Return the current GPU used global (device) memory in bytes.
- Parameters:
device (torch.device, ) – selected device. Uses the current device, given by , if (default).
Return the current GPU used global (device) memory in bytes.
device (torch.device, ) – selected device. Uses the current device, given by , if (default).
None