torch.xpu.memory.memory_snapshot#
- torch.xpu.memory.memory_snapshot(mempool_id=None)[source]#
Return a snapshot of the XPU memory allocator state across all devices. Provides detailed information for each memory segment managed by the allocator including its size, owning pool, associated stream, call stack traces, and other relevant attributes.