torch.cuda.memory.host_memory_stats
- torch.cuda.memory.host_memory_stats()
Return a dictionary of pinned (host) allocator statistics.
Core statistics (host pinned allocator):
"allocations.{current,peak,allocated,freed}": pinned blocks owned by the allocator (active + cached). Grows when a new block is created via CUDA and shrinks when cached blocks are returned."allocated_bytes.{current,peak,allocated,freed}": bytes of pinned blocks owned by the allocator (active + cached), using the rounded block size requested from CUDA.: blocks currently checked out to callers (increments on handout, decrements when the block becomes reusable after stream deps finish).