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

Method get_var

src/jit/impl/executor_opr.cpp:440–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438 VarNode* m_dest_var;
439 VarNodeArray m_new_inp;
440 VarNode* get_var(VarNode* var) {
441 auto&& iter = m_var_map.find(var);
442 if (iter != m_var_map.end()) {
443 return iter->second;
444 }
445 return var;
446 }
447
448public:
449 InternalGraphRewriter(VarNode* dest_var) : m_dest_var{dest_var} {}

Callers 6

applyMethod · 0.45
replace_vars_internalFunction · 0.45
update_graphMethod · 0.45
update_graphMethod · 0.45
expand_executor_oprFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected