cupy.cuda.alloc¶
-
cupy.cuda.
alloc
(size) → MemoryPointer¶ Calls the current allocator.
Use
set_allocator()
to change the current allocator.- Parameters
size (int) – Size of the memory allocation.
- Returns
Pointer to the allocated buffer.
- Return type