Python class
BufferType
BufferType
class max.graph.BufferType(dtype, shape, device)
Bases: _TensorTypeBase[BufferType]
A symbolic buffer type.
This is a reference to a tensor that can be mutated in place.
as_tensor()
as_tensor()
Returns the analogous tensor type.
-
Return type:
from_mlir()
classmethod from_mlir(type)
Constructs a buffer type from an MLIR type.
-
Parameters:
-
type (BufferType) – The MLIR Type to parse into a buffer type.
-
Returns:
-
The buffer type represented by the MLIR Type value.
-
Return type:
to_mlir()
to_mlir()
Converts to an mlir.Type instance.
-
Returns:
-
An
mlir.Typein the specified Context. -
Return type:
-
BufferType
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!