torch.cuda.memory.caching_allocator_delete#
- torch.cuda.memory.caching_allocator_delete(mem_ptr)[source]#
Delete memory allocated using the CUDA memory allocator.
Memory allocated with
caching_allocator_alloc().is freed here. The associated device and stream are tracked insidethe allocator.- Parameters:
mem_ptr (int) – memory address to be freed by the allocator.
Note
SeeMemory management for more details about GPU memorymanagement.