cupy.cuda.Memory

class cupy.cuda.Memory(size_t size)

Memory allocation on a CUDA device.

This class provides an RAII interface of the CUDA memory allocation.

Parameters

size (int) – Size of the memory allocation in bytes.

Methods

Attributes

device
device_id

‘int’

Type

device_id

ptr

‘intptr_t’

Type

ptr

size

‘size_t’

Type

size