Python module
shape
Library for graph shape types.
Shape
class max.graph.shape.Shape(dims=())
-
Parameters:
-
dims (
ShapeLike
)
from_mlir()
classmethod from_mlir(attr)
-
Parameters:
-
attr (
TypedAttr
) -
Return type:
is_static()
static is_static(shape)
parameters
property parameters: Iterable[SymbolicDim]
Lists the symbolic dimension names on which this shape depends.
rank
property rank
static_dims
Returns all static dims in the shape as a list of integers.
to_mlir()
to_mlir()
-
Return type:
-
ShapeAttr
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!