megengine.traced_module.traced_module.InternalGraph.get_expr_by_id

InternalGraph.get_expr_by_id(expr_id=None, recursive=True)[源代码]

Filter Exprs by their id.

参数
  • expr_id (Optional[List[int]]) – a list of int.

  • recursive – whether to get the Exprs in the subgraph. Default: True

返回

A ExprFilterExprId.