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

Method replace_axis

python/tvm/tirx/exec_context.py:161–172  ·  view source on GitHub ↗
(self, axis: str, axis_range: AxisRange)

Source from the content-addressed store, hash-verified

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]] = []
163 found = False
164 for name in self.axis_names:
165 if name == axis:
166 axes.append((name, axis_range))
167 found = True
168 else:
169 axes.append((name, self.axis(name)))
170 if not found:
171 raise ValueError(f"unknown active-set axis: {axis!r}")
172 return ActiveSet.from_axes(axes)
173
174 @property
175 def laneid(self) -> AxisRange:

Callers 2

filter_narrowFunction · 0.80
filter_moduloFunction · 0.80

Calls 3

axisMethod · 0.95
from_axesMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected