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

Class ReplaceVar

tests/python/tirx-base/test_tir_constructor.py:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27class ReplaceVar(ExprMutator):
28 def __init__(self, old_var, new_var):
29 super().__init__()
30 self.old_var = old_var
31 self.new_var = new_var
32
33 def visit_var_(self, op):
34 if op.same_as(self.old_var):
35 return self.new_var
36 return op
37
38
39def test_expr_constructor():

Callers 1

test_expr_constructorFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_expr_constructorFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…