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

Method ~StaticInferManagerImpl

src/core/impl/graph/static_infer_impl.cpp:762–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760/* ===================== StaticInferManagerImpl ===================== */
761
762StaticInferManagerImpl::~StaticInferManagerImpl() noexcept {
763 m_mem_pool_shape_trait.disable_freelist();
764 m_mem_pool_value_trait.disable_freelist();
765 for (auto&& i : m_dtor_callbacks)
766 i.second();
767 for (auto&& i : ComputingGraphImpl::downcast(m_owner_graph)->all_oprs()) {
768 for (auto j : i->output()) {
769 clear_tag_handler(j);
770 }
771 }
772}
773
774void StaticInferManagerImpl::clear_tag_handler(Tag tag) {
775 auto&& container = get_tag_trait_container(tag);

Callers

nothing calls this directly

Calls 3

all_oprsMethod · 0.80
disable_freelistMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected