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

Function _eval_shape

python/tvm/relax/script/parser/entry.py:191–196  ·  view source on GitHub ↗
(expr: str | PrimExpr, dict_globals: dict[str, Any] | None)

Source from the content-addressed store, hash-verified

189
190
191def _eval_shape(expr: str | PrimExpr, dict_globals: dict[str, Any] | None) -> PrimExpr:
192 if isinstance(expr, str):
193 code = compile(expr, "<string>", "eval")
194 return eval(code, dict_globals or {}) # pylint: disable=eval-used
195 else:
196 return expr
197
198
199class TensorProxy(StructInfoProxy):

Callers 3

as_struct_infoMethod · 0.85
as_struct_infoMethod · 0.85
as_struct_infoMethod · 0.85

Calls 1

compileFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…