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

Method add

src/opr/impl/loop/impl.cpp:457–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457void LoopImpl::SubgraphDepIter::add(VarNode* dest) {
458 m_dep_iter.add(dest->owner_opr());
459 while (!m_unresolved_assignors.empty()) {
460 auto var = m_unresolved_assignors.back();
461 m_unresolved_assignors.pop_back();
462 m_dep_iter.add(var->owner_opr());
463 }
464}
465
466void LoopImpl::SubgraphDepIter::sort_input_makers() {
467 auto cmp = [](InputMaker* a, InputMaker* b) { return a->id() < b->id(); };

Callers 15

extend_netinfoMethod · 0.45
_write_oprsMethod · 0.45
_write_elemwise_modesMethod · 0.45
format_and_printMethod · 0.45
get_io_infoMethod · 0.45
update_ioMethod · 0.45
get_io_infoMethod · 0.45

Calls 4

backMethod · 0.80
owner_oprMethod · 0.45
emptyMethod · 0.45
pop_backMethod · 0.45

Tested by 8

run_testFunction · 0.36
ensure_init_graphMethod · 0.36
TESTFunction · 0.36
find_opr_numFunction · 0.36
find_oprsFunction · 0.36
TESTFunction · 0.36
ensure_init_graphMethod · 0.36
TESTFunction · 0.36