torch.cuda.memory.memory_reserved
- torch.cuda.memory.memory_reserved(device=None)
Return the current GPU memory managed by the caching allocator in bytes for a given device.
- Parameters:
device (torch.device or ) – selected device. Returns statistic for the current device, given by , if is (default).