MCPcopy
hub / github.com/apache/tvm / visit_add_

Method visit_add_

tests/python/tirx-transform/test_tir_functor.py:197–202  ·  view source on GitHub ↗
(self, op: Add)

Source from the content-addressed store, hash-verified

195 self.modifications = 0
196
197 def visit_add_(self, op: Add):
198 self.modifications += 1
199 # Convert a + b to a * 2 + b for demonstration
200 a = self.visit_expr(op.a)
201 b = self.visit_expr(op.b)
202 return Add(Mul(a, IntImm("int32", 2)), b)
203
204
205def test_basic_visitor():

Callers

nothing calls this directly

Calls 4

AddClass · 0.90
MulClass · 0.90
IntImmClass · 0.90
visit_exprMethod · 0.45

Tested by

no test coverage detected