Python class
BufferValue
BufferValue
class max.graph.BufferValue(value: Value | Value | BufferValue | TensorValue | Shape | Dim | int | float | integer | floating | ndarray)
Bases: Value
Represents a mutable semantic tensor within a Graph.
device
property device*: DeviceRef | None*
Returns the device of the BufferValue.
dtype
property dtype*: DType*
Returns the tensor data type.
print()
print(label: str = 'debug_buffer')
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
.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!