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

Method _eval_expr

python/tvm/script/parser/core/evaluator.py:426–439  ·  view source on GitHub ↗

The doc AST expression node evaluating method. Parameters ---------- v : Any The root node of AST tree node of expression to evaluate. Returns ------- res : Any The evaluation result.

(self, v: Any)

Source from the content-addressed store, hash-verified

424 return slice(lower, upper, step)
425
426 def _eval_expr(self, v: Any) -> Any:
427 """The doc AST expression node evaluating method.
428
429 Parameters
430 ----------
431 v : Any
432 The root node of AST tree node of expression to evaluate.
433
434 Returns
435 -------
436 res : Any
437 The evaluation result.
438 """
439 return _eval_expr(v, self.value_table)
440
441
442def eval_expr(

Callers 8

_visitMethod · 0.95
_eval_lambdaMethod · 0.95
_eval_bool_opMethod · 0.95
_eval_compareMethod · 0.95
_eval_unary_opMethod · 0.95
_eval_bin_opMethod · 0.95
_eval_if_expMethod · 0.95
_eval_sliceMethod · 0.95

Calls 1

_eval_exprFunction · 0.85

Tested by

no test coverage detected