Rate this Page

torch.mps.current_allocated_memory#

torch.mps.current_allocated_memory()[source]#

Returns the current GPU memory occupied by tensors in bytes.

Note

The returned size does not include cached allocations in memory pools of MPSAllocator.

Return type

int