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

Method from_min_extent

python/tvm/ir/expr.py:146–167  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 15

_bound_buffer_regionMethod · 0.80
visit_for_Method · 0.80
_emit_gmem_smemFunction · 0.80
_emitFunction · 0.80
compute_canonical_paramsFunction · 0.80
_mutate_rangeMethod · 0.80
__getitem__Method · 0.80
__getitem__Method · 0.80
_as_rangeFunction · 0.80
fcomputeFunction · 0.80
test_complete_matmulFunction · 0.80

Calls

no outgoing calls

Tested by 13

fcomputeFunction · 0.64
test_complete_matmulFunction · 0.64
_check_elementwiseFunction · 0.64
test_infer_rangeFunction · 0.64
test_no_solutionFunction · 0.64
test_unbound_var_rangeFunction · 0.64
test_modFunction · 0.64
check_region_boundFunction · 0.64
_make_tma_callFunction · 0.64