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

Method add_nested

src/core/impl/graph/execution_mask.cpp:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void ExecutionMask::add_nested(ExecutionMask* nested) {
77 mgb_assert(!nested->m_parent && nested->m_nested.empty());
78 nested->m_parent = this;
79 nested->m_level = m_level + 1;
80 m_nested.emplace_back(nested);
81}
82
83ExecutionMask* ExecutionMask::find_direct_lowest(ExecutionMask* a, ExecutionMask* b) {
84 if (!a || a == b) {

Callers 1

on_new_oprMethod · 0.80

Calls 2

emplace_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected