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

Function visit_arguments

python/tvm/relax/script/parser/parser.py:334–342  ·  view source on GitHub ↗
(self: Parser, node: doc.arguments)

Source from the content-addressed store, hash-verified

332
333@dispatch.register(token="relax", type_name="arguments")
334def visit_arguments(self: Parser, node: doc.arguments) -> None:
335 arg: doc.arg
336 for arg in node.args:
337 if arg.annotation is None:
338 self.report_error(arg, "Type annotation is required for function parameters.")
339 param_sinfo = eval_struct_info(self, arg.annotation, eval_str=True)
340 param = R.arg(arg.arg, param_sinfo)
341
342 self.var_table.add(arg.arg, param)
343
344
345@dispatch.register(token="relax", type_name="tvm_annotation")

Callers

nothing calls this directly

Calls 3

eval_struct_infoFunction · 0.85
report_errorMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…