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

Method ~MegDNNDtorCheck

src/core/impl/graph/cg_impl_seq.cpp:694–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694ComputingGraphImpl::MegDNNDtorCheck::~MegDNNDtorCheck() {
695 if (m_enabled) {
696 m_handle->set_opr_destruct_callback(m_orig_dnn_cb);
697 m_env->mem_event_handler(m_orig_mem_cb);
698 }
699 if (m_comp_seq) {
700 m_comp_seq->on_graph_destroy();
701 }
702}
703
704/* ======================= RecordedComputingSequence ======================= */
705

Callers

nothing calls this directly

Calls 3

mem_event_handlerMethod · 0.80
on_graph_destroyMethod · 0.80

Tested by

no test coverage detected