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

Function eval_struct_info

python/tvm/relax/script/parser/parser.py:114–121  ·  view source on GitHub ↗
(self: Parser, node: doc.expr, eval_str: bool = False)

Source from the content-addressed store, hash-verified

112
113
114def eval_struct_info(self: Parser, node: doc.expr, eval_str: bool = False) -> StructInfo:
115 var_table = self.var_table.get() if eval_str else None
116 try:
117 struct_info = self.eval_expr(node)
118 return _normalize_struct_info(struct_info, var_table)
119 except Exception as err: # pylint: disable=broad-except
120 self.report_error(node, err)
121 raise
122
123
124def is_called(node: Any, func_name: str) -> bool:

Callers 4

visit_function_defFunction · 0.85
visit_argumentsFunction · 0.85
visit_tvm_annotationFunction · 0.85

Calls 4

_normalize_struct_infoFunction · 0.85
eval_exprMethod · 0.80
report_errorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…