| 15 | } |
| 16 | |
| 17 | void MemoryOptimizerHelper::set_priority(OperatorNodeBase* opr, int pri) { |
| 18 | int& val = opr->node_prop().attribute().priority; |
| 19 | m_saved_priority.insert({opr, val}); |
| 20 | val = pri; |
| 21 | } |
| 22 | |
| 23 | void MemoryOptimizerHelper::set_priority_before_opt(const VarNodeArray& endpoints) { |
| 24 | mgb_assert(!m_graph_option_changed, "restore_graph_option() not called"); |
no test coverage detected