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

Function visit_assign

python/tvm/script/parser/ir/parser.py:123–130  ·  view source on GitHub ↗
(self: Parser, node: doc.Assign)

Source from the content-addressed store, hash-verified

121
122@dispatch.register(token="default", type_name="Assign")
123def visit_assign(self: Parser, node: doc.Assign) -> None:
124 if len(node.targets) != 1:
125 self.report_error(node, "Consequential assignments like 'a = b = c' are not supported.")
126 lhs = node.targets[0]
127 rhs = self.eval_expr(node.value)
128 self.eval_assign(
129 target=lhs, source=rhs, bind_value=lambda _a, _b, _c, value: value, allow_shadowing=True
130 )
131
132
133@dispatch.register(token="default", type_name="pre_visit_local_function")

Callers

nothing calls this directly

Calls 3

report_errorMethod · 0.80
eval_exprMethod · 0.80
eval_assignMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…