MemPool
- class torch.xpu.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 XPUCachingAllocator.
- Parameters:
allocator (torch._C._xpu_XPUAllocator, ) – a torch._C._xpu_XPUAllocator 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 XPUCachingAllocator.