MCPcopy Index your code
hub / github.com/apache/tvm / ForLoopUnroller

Class ForLoopUnroller

tests/python/tirx-transform/test_tir_functor.py:156–166  ·  view source on GitHub ↗

Simple loop unroller for demonstration

Source from the content-addressed store, hash-verified

154
155@tirx.functor.mutator
156class ForLoopUnroller(PyStmtExprMutator):
157 """Simple loop unroller for demonstration"""
158
159 def __init__(self, unroll_factor=2):
160 super().__init__()
161 self.unroll_factor = unroll_factor
162
163 def visit_for_(self, op: For):
164 # For demonstration, just return the original for now
165 # In a real implementation, we would unroll small loops
166 return super().visit_for_(op)
167
168
169@tirx.functor.visitor

Callers 1

test_stmt_mutatorFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_stmt_mutatorFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…