API 相关说明
Filter Nodes by their id.
id
The id of the Node can be obtained by the following code
Node
# node : Node print("{:i}".format(node)) print(node.__format__("i")) # graph : InternalGraph print("{:i}".format(graph)) print(graph.__format__("i"))
node_id (Optional[List[int]]) – a list of int.
Optional
List
int
recursive – whether to get the Nodes in the subgraph. Default: True
A NodeFilterNodeId.
NodeFilterNodeId
上一页
megengine.traced_module.traced_module.InternalGraph.get_module_by_type
下一页
megengine.traced_module.traced_module.InternalGraph.get_node_by_name