XPUPluggableAllocator
- class torch.xpu.memory.XPUPluggableAllocator(path_to_lib_file, alloc_fn_name, free_fn_name)
XPU memory allocator loaded dynamically from a shared library.
This lets users provide custom allocation and free functions implemented in a separate shared library. The allocator is registered and could become available for use via
change_current_allocator().