MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / restore_graph_option

Method restore_graph_option

src/core/impl/graph/memory_optimizer.cpp:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void MemoryOptimizerHelper::restore_graph_option() {
105 if (!m_graph_option_changed)
106 return;
107
108 for (auto&& i : m_saved_priority) {
109 i.first->node_prop().attribute().priority = i.second;
110 }
111 m_saved_priority.clear();
112 m_graph_option_changed = false;
113}
114
115MemoryOptimizerHelper::MemoryOptimizerHelper(ComputingGraphImpl* owner)
116 : m_owner_graph(owner) {}

Callers 1

compile_prepareMethod · 0.45

Calls 2

attributeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected