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

Method clear_device_memory

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

Source from the content-addressed store, hash-verified

581}
582
583void ComputingGraphImpl::ComputingSequence::clear_device_memory() {
584 check_not_finalized();
585 if (m_owner_graph->current_comp_seq() == this) {
586 m_owner_graph->clear_device_memory();
587 }
588}
589
590const CompNode::UnorderedMap<size_t>& ComputingGraphImpl::ComputingSequence::
591 update_static_alloc_plan_and_get_size() {

Callers 1

cleanupMethod · 0.45

Calls 1

current_comp_seqMethod · 0.45

Tested by

no test coverage detected