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

Function is_bad_opr

src/core/impl/graph/seq_dtr.cpp:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace {
9
10bool is_bad_opr(OperatorNodeBase* opr) {
11 using F = OperatorNodeBase::NodeProp::Flag;
12 return opr->node_prop().contain(
13 F::IMPURE_FUNC | F::NO_AUTOMATIC_DUP | F::FORCE_UPDATE_INPUT_VAR);
14}
15
16} // namespace
17

Callers 1

perform_dtrMethod · 0.70

Calls 1

containMethod · 0.45

Tested by

no test coverage detected