MCPcopy Create free account
hub / github.com/apache/tvm / ShapeStructInfo

Class ShapeStructInfo

python/tvm/relax/struct_info.py:110–138  ·  view source on GitHub ↗

StructInfo of a shape value. Parameters ---------- values : Optional[List[PrimExpr]] The symbolic shape values if known. ndim : Optional[int] The size of the shape. Note ---- Do not specify values and ndim at the same time.

Source from the content-addressed store, hash-verified

108
109@tvm_ffi.register_object("relax.ShapeStructInfo")
110class ShapeStructInfo(StructInfo):
111 """StructInfo of a shape value.
112
113 Parameters
114 ----------
115 values : Optional[List[PrimExpr]]
116 The symbolic shape values if known.
117
118 ndim : Optional[int]
119 The size of the shape.
120
121 Note
122 ----
123 Do not specify values and ndim at the same time.
124 """
125
126 values: list[PrimExpr] | None
127 ndim: int
128 span: Span
129
130 def __init__(
131 self, values: list[PrimExpr] | None = None, ndim: int = -1, span: Span = None
132 ) -> None:
133 self.__init_handle_by_constructor__(
134 _ffi_api.ShapeStructInfo,
135 values,
136 ndim,
137 span, # type: ignore
138 )
139
140
141@tvm_ffi.register_object("relax.TensorStructInfo")

Callers 5

as_struct_infoMethod · 0.90
_convert_inputFunction · 0.85
full_call_teFunction · 0.85
_dynamic_strided_sliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…