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

Function is_bad_opr

src/core/impl/graph/seq_sublinear_memory.cpp:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44};
45
46bool is_bad_opr(OperatorNodeBase* opr) {
47 using F = OperatorNodeBase::NodeProp::Flag;
48 return opr->node_prop().contain(
49 F::IMPURE_FUNC | F::NO_AUTOMATIC_DUP | F::FORCE_UPDATE_INPUT_VAR);
50}
51
52} // namespace
53/* ====================== ModifyActionPlanner ====================== */

Callers 2

apply_discard_planMethod · 0.70
make_discard_planMethod · 0.70

Calls 1

containMethod · 0.45

Tested by

no test coverage detected