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

Method out_var_from_mask

src/opr/impl/cond.cpp:519–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519VarNode* CondExecPred::out_var_from_mask(ExecutionMask* mask) const {
520 for (size_t i = 0; i < output().size(); ++i) {
521 if (mask == m_masks[i].get()) {
522 return output(i);
523 }
524 }
525 mgb_throw(AssertionError, "bad mask");
526}
527
528/* ========================== CondExecPredLogical ========================== */
529MGB_DYN_TYPE_OBJ_FINAL_IMPL(CondExecPredLogical);

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected