torch.cuda.memory.memory_snapshot
- torch.cuda.memory.memory_snapshot(mempool_id=None, include_traces=True)
Return a snapshot of the CUDA memory allocator state across all devices.
Interpreting the output of this function requires familiarity with the memory allocator internals.
- Parameters:
– Optional memory pool ID to get snapshot for a specific pool