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

Method CompSeq

src/core/impl/graph/memory_optimizer.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace cg {
6
7MemoryOptimizerHelper::CompSeq::CompSeq(
8 ComputingGraphImpl* owner, const VarNodeArray& endpoints)
9 : m_owner_graph(owner) {
10 CompSeqExtraInfo extra_info;
11 m_seq = owner->topo_sorter().get_comp_seq(extra_info, endpoints);
12}
13MemoryOptimizerHelper::CompSeq::~CompSeq() {
14 m_owner_graph->topo_sorter().restore_opr_prop();
15}

Callers

nothing calls this directly

Calls 1

get_comp_seqMethod · 0.80

Tested by

no test coverage detected