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.
from_mlir()
classmethod from_mlir(value)
-
Parameters:
-
value (
Value
[
BufferType
]
) -
Return 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
.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!