Construct a Range by min and extent. This constructs a range in [min_value, min_value + extent) Parameters ---------- min_value : PrimExpr The minimum value of the range. extent : PrimExpr The extent of the range. span : Opt
(min_value: PrimExpr, extent: PrimExpr, span: Span | None = None)
| 144 | |
| 145 | @staticmethod |
| 146 | def from_min_extent(min_value: PrimExpr, extent: PrimExpr, span: Span | None = None) -> "Range": |
| 147 | """Construct a Range by min and extent. |
| 148 | |
| 149 | This constructs a range in [min_value, min_value + extent) |
| 150 | |
| 151 | Parameters |
| 152 | ---------- |
| 153 | min_value : PrimExpr |
| 154 | The minimum value of the range. |
| 155 | |
| 156 | extent : PrimExpr |
| 157 | The extent of the range. |
| 158 | |
| 159 | span : Optional[Span] |
| 160 | The location of this node in the source code. |
| 161 | |
| 162 | Returns |
| 163 | ------- |
| 164 | rng : Range |
| 165 | The constructed range. |
| 166 | """ |
| 167 | return _ffi_api.Range_from_min_extent(min_value, extent, span) |
| 168 | |
| 169 | def __eq__(self, other: Object) -> bool: |
| 170 | return tvm_ffi.structural_equal(self, other) |
no outgoing calls