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

Method add_producer

src/plugin/impl/var_sanity_check.cpp:86–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void VarSanityCheck::DebugLog::add_producer(VarNode* var) {
87 if (static_cast<int>(var->id()) == m_var_id) {
88 m_readcnt_init = 0;
89 m_var = var;
90 }
91}
92
93void VarSanityCheck::DebugLog::add_receiver(VarNode* var) {
94 if (static_cast<int>(var->id()) == m_var_id) {

Callers 1

VarSanityCheckMethod · 0.80

Calls 1

idMethod · 0.45

Tested by

no test coverage detected