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

Method check_ppv

src/opr/impl/cond.cpp:182–189  ·  view source on GitHub ↗

assert that a var is a PPV

Source from the content-addressed store, hash-verified

180
181 //! assert that a var is a PPV
182 ExecutionMask* check_ppv(VarNode* var) const {
183 auto mask = require_mask_from_var(var);
184 mgb_throw_if(
185 mask->owner() != var, GraphError,
186 "a conditional var is not PPV: mask=%s var=%s", mask2str(mask).c_str(),
187 cg::dump_var_info({var}).c_str());
188 return mask;
189 }
190};
191MGB_TYPEINFO_OBJ_IMPL(CondExecPred::GlobalRegistry);
192

Callers 1

CondExecMarkMethod · 0.80

Calls 2

mask2strFunction · 0.85
ownerMethod · 0.45

Tested by

no test coverage detected