megengine.traced_module.traced_module.InternalGraph.get_method_by_type

InternalGraph.get_method_by_type(method=None, recursive=True)[源代码]

Filter Exprs by the type of CallMethod.

参数
  • method (Optional[str]) – a method string, such as “__add__”.

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

返回

A ExprFilterCallMethod.