| 692 | } |
| 693 | |
| 694 | ComputingGraphImpl::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 |
nothing calls this directly
no test coverage detected