cupy.cuda.Memory¶
-
class
cupy.cuda.
Memory
¶ Memory allocation on a CUDA device.
This class provides an RAII interface of the CUDA memory allocation.
Parameters: - device (cupy.cuda.Device) – Device whose memory the pointer refers to.
- size (int) – Size of the memory allocation in bytes.
Methods