megengine.utils.comp_graph_tools.set_priority_to_id

set_priority_to_id(dest_vars)[源代码]

For all oprs in the subgraph constructed by dest_vars, sets its priority to id if its original priority is zero.

参数

dest_vars – 将会出现在新图中的目标变量。