torch.xpu.memory.change_current_allocator
- torch.xpu.memory.change_current_allocator(allocator)
Change the currently used memory allocator to be the one provided.
- Parameters:
Change the currently used memory allocator to be the one provided.
allocator (torch.xpu.memory._XPUAllocator) – allocator to be set as the active one.