megengine.traced_module.traced_module.InternalGraph.get_node_by_name

InternalGraph.get_node_by_name(name=None, ignorecase=True, recursive=True)[源代码]

Filter Nodes by their full name.

The full name of the Node can be obtained by the following code

# node : Node
print("{:p}".format(node))
print(node.__format__("p"))
# graph : InternalGraph
print("{:p}".format(graph))
print(graph.__format__("p"))
参数
  • name (Optional[str]) – a string in glob syntax that can contain ? and * to match a single or arbitrary characters.

  • ignorecase (bool) – whether to ignroe case. Default: True

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

返回

A NodeFilterName.