torch.accelerator.memory.memory_reserved
- torch.accelerator.memory.memory_reserved(device_index=None, /)
Return the current accelerator device memory managed by the caching allocator in bytes for a given device index.
Return the current accelerator device memory managed by the caching allocator in bytes for a given device index.
torch.devicethe current memory reserved by PyTorch (in bytes) within the current process.