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

Method reset

src/core/impl/graph/var_node.cpp:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11MGB_MUTEX MemAllocPlan::ReadonlyFwdList::list_mutex;
12
13void MemAllocPlan::ReadonlyFwdList::reset() {
14 MGB_LOCK_GUARD(list_mutex);
15 m_prev = m_next = nullptr;
16}
17
18void MemAllocPlan::ReadonlyFwdList::insert_after(
19 const MemAllocPlan& prev, MemAllocPlan* self) {

Callers 15

clear_device_memoryMethod · 0.45
try_reset_recorderMethod · 0.45
preprocessMethod · 0.45
on_comp_node_finalizeMethod · 0.45
cleanupMethod · 0.45
as_recorded_seqMethod · 0.45
assert_destroyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected