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

Method axis

python/tvm/tirx/exec_context.py:149–159  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

147 return [str(it.axis.name) for it in self.layout.shard]
148
149 def axis(self, name: str) -> AxisRange:
150 for it in self.layout.shard:
151 if str(it.axis.name) != name:
152 continue
153 offset = 0
154 for axis, value in self.layout.offset.items():
155 if str(axis.name) == name:
156 offset = int(value)
157 break
158 return AxisRange(int(it.extent), offset, int(it.stride))
159 raise ValueError(f"unknown active-set axis: {name!r}")
160
161 def replace_axis(self, axis: str, axis_range: AxisRange) -> ActiveSet:
162 axes: list[tuple[str, AxisRange]] = []

Callers 6

replace_axisMethod · 0.95
laneidMethod · 0.95
warpidMethod · 0.95
cta_idMethod · 0.95
filter_narrowFunction · 0.45
filter_moduloFunction · 0.45

Calls 3

strFunction · 0.85
AxisRangeClass · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected