- Sets a thread-local allocator for GPU memory inside
allocator (function) – CuPy memory allocator. It must have the same interface as the
cupy.cuda.alloc()function, which takes the buffer size as an argument and returns the device buffer of that size. When
Noneis specified, raw memory allocator will be used (i.e., memory pool is disabled).