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.
| 108 | |
| 109 | @tvm_ffi.register_object("relax.ShapeStructInfo") |
| 110 | class 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") |
no outgoing calls
no test coverage detected
searching dependent graphs…