torch.accelerator.memory.memory_allocated
- torch.accelerator.memory.memory_allocated(device_index=None, /)
Return the current accelerator device memory occupied by tensors in bytes for a given device index.
Return the current accelerator device memory occupied by tensors in bytes for a given device index.
torch.devicethe current memory occupied by live tensors (in bytes) within the current process.