cupy.cuda.alloc¶
-
cupy.cuda.
alloc
(Py_ssize_t 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: MemoryPointer