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

Function visit_assign

python/tvm/relax/script/parser/parser.py:372–382  ·  view source on GitHub ↗
(self: Parser, node: doc.Assign)

Source from the content-addressed store, hash-verified

370
371@dispatch.register(token="relax", type_name="Assign")
372def visit_assign(self: Parser, node: doc.Assign) -> None:
373 if len(node.targets) != 1:
374 self.report_error(node, "Consequential assignments like 'a = b = c' are not supported.")
375 lhs = node.targets[0]
376 rhs = self.eval_expr(node.value)
377 self.eval_assign(
378 target=lhs,
379 source=rhs,
380 bind_value=bind_assign_value,
381 allow_shadowing=True,
382 )
383
384
385@dispatch.register(token="relax", type_name="AnnAssign")

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…