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

Method dealloc

src/core/impl/comp_node_api.cpp:175–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 }
174
175 void dealloc(CompNode cn, void* ptr) {
176 if (mgb_likely(ptr != nullptr)) {
177 if (!is_finalize()) {
178 MGB_LOCK_GUARD(m_mutex);
179 m_helpers[cn]->dealloc(ptr);
180 }
181 }
182 }
183
184 bool is_xla_used() { return m_helpers.size() != 0; }
185

Callers 1

deallocFunction · 0.45

Calls 1

is_finalizeFunction · 0.85

Tested by

no test coverage detected