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

Method on_var_replaced

src/gopt/impl/framework.cpp:113–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void SubGraph::Rewriter::on_var_replaced(VarNode* src, VarNode* dst, const char* msg) {
114 if (auto state = m_owner_graph->owner_opt_state()) {
115 state->on_var_replaced(src, dst, msg);
116 }
117}
118
119void SubGraph::Rewriter::apply_inplace() const {
120 m_owner_graph->m_endpoint_oprs.clear();

Callers

nothing calls this directly

Calls 15

to_stringFunction · 0.85
owner_opt_stateMethod · 0.80
has_name_setMethod · 0.80
verbosityMethod · 0.80
normFunction · 0.50
contain_flagMethod · 0.45
owner_oprMethod · 0.45
findMethod · 0.45
endMethod · 0.45
attributeMethod · 0.45
nameMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected