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

Function visit_return

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

Source from the content-addressed store, hash-verified

397
398@dispatch.register(token="relax", type_name="Return")
399def visit_return(self: Parser, node: doc.Assign) -> None:
400 value = self.eval_expr(node.value)
401 value = convert_to_expr(value)
402 R.func_ret_value(value)
403
404
405@dispatch.register(token="relax", type_name="If")

Callers

nothing calls this directly

Calls 2

convert_to_exprFunction · 0.90
eval_exprMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…