Skip to main content
Log in

Python class

BufferValue

BufferValue

class max.graph.BufferValue(value)

Bases: Value[BufferType]

Represents a mutable semantic tensor within a Graph.

Value is abstract, it shouldn’t be constructed directly.

Parameters:

value (Value | \_Value [ mo.BufferType ] )

device

property device*: DeviceRef*

Returns the device of the BufferValue.

dtype

property dtype*: DType*

Returns the tensor data type.

print()

print(label='debug_buffer')

Parameters:

label (str )

rank

property rank*: int*

Returns the rank (number of dims) of the buffer.

shape

property shape*: Shape*

Returns the shape of the BufferValue.

type

property type*: BufferType*

Returns the type of the BufferValue as a BufferType.