cuda.bindings._v2.driver.TensorMap#

class cuda.bindings._v2.driver.TensorMap#

Empty-initialize an instance of CUtensorMap.

See also

CUtensorMap

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_buffer(buffer)

Create an TensorMap instance with the memory from the given buffer.

from_data(data)

Create an TensorMap instance wrapping the given NumPy array.

from_ptr(intptr_t ptr, bool readonly=False)

Create an TensorMap instance wrapping the given pointer.

Attributes

opaque

(array of length 16).

ptr

Get the pointer address to the data as Python int.