megengine.utils.network.Network.replace_oprs

Network.replace_oprs(repl_dict)[源代码]

Replaces operators in the graph.

参数

repl_dict (Dict[OpNode, OpNode]) – the map {old_opr: new_opr} that specifies how to replace the operators.