MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / ~EagerEvalManager

Method ~EagerEvalManager

src/core/impl/graph/eager_eval.cpp:63–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 : m_owner_graph{graph}, m_exec_env{new EagerExecEnv} {}
62
63EagerEvalManager::~EagerEvalManager() noexcept {
64 if (m_first_opr_enable_status == 1) {
65 m_var_sync_mgr_pool.disable_freelist();
66 for (auto&& i : ComputingGraphImpl::downcast(m_owner_graph)->all_oprs()) {
67 for (auto var : i->output()) {
68 auto mgr = VarNodeMemManager::var_node_cn_sync_manager(var);
69 if (mgr) {
70 m_var_sync_mgr_pool.free(mgr);
71 }
72 }
73 }
74 m_version_trait_pool.disable_freelist();
75 for (auto&& i : m_opr2version) {
76 m_version_trait_pool.free(i.second);
77 }
78 }
79}
80
81void EagerEvalManager::init_waiting_spec(OperatorNodeBase* opr) {
82 CompNode::UnorderedSet cur_used_cn;

Callers

nothing calls this directly

Calls 4

all_oprsMethod · 0.80
disable_freelistMethod · 0.45
outputMethod · 0.45
freeMethod · 0.45

Tested by

no test coverage detected