MemPool
- class torch.cuda.memory.MemPool(*args, **kwargs)
MemPool represents a pool of memory in a caching allocator. Currently, it’s just the ID of the pool object maintained in the CUDACachingAllocator.
- Parameters:
allocator (torch._C._cuda_CUDAAllocator, ) – a torch._C._cuda_CUDAAllocator object that can be used to define how memory gets allocated in the pool. If is (default), memory allocation follows the default/ current configuration of the CUDACachingAllocator.