Home
last modified time | relevance | path

Searched refs:kPrimStopGradient (Results 1 – 11 of 11) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Dstopgrad_eliminate.h47 if (IsPrimitiveCNode(input, prim::kPrimStopGradient)) { in GetInputStopGradient()
Dspecial_op_eliminate.h45 stop_gradient_(std::make_shared<PrimEliminater>(prim::kPrimStopGradient)), in SpecialOpEliminater()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/
Dpynative_dfunctor.cc132 if (IsPrimitiveCNode(cnode_morph, prim::kPrimStopGradient)) { in RunOutputReplace()
183 IsPrimitiveCNode(input_node, prim::kPrimStopGradient)) { in RunInputReplace()
Ddfunctor.cc524 …if ((prim->Hash() == prim::kPrimStopGradient->Hash() && prim->name() == prim::kPrimStopGradient->n… in MapPrimitiveToK()
731 …if (IsPrimitiveCNode(cnode, prim::kPrimStopGradient) || IsPrimitiveCNode(cnode, prim::kPrimUpdateS… in BroadCastStopFlag()
Dkpynative.cc390 …if (IsPrimitiveEquals(prim, prim::kPrimStopGradient) || IsPrimitiveEquals(prim, prim::kPrimUpdateS… in KPynativeOp()
885 …if (IsPrimitiveCNode(cnode, prim::kPrimStopGradient) || IsPrimitiveCNode(cnode, prim::kPrimUpdateS… in PropagateStopGradient()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dirpass.cc65 {prim::kPrimInsertGradientOf, prim::kPrimStopGradient, prim::kPrimHookBackward, in OptimizeIRPassLib()
202 …tution(std::make_shared<StopGradientEliminater>(), "stopgrad_eliminater", prim::kPrimStopGradient); in OptimizeIRPassLib()
/third_party/mindspore/tests/ut/cpp/optimizer/ad/
Dkpynative_test.cc72 auto b_node = g->NewCNode({NewValueNode(prim::kPrimStopGradient), a_node}); in BuildStopGradient()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/
Dauto_monad.cc1197 IsPrimitiveCNode(output->cast<CNodePtr>()->input(2), prim::kPrimStopGradient)) { in ClearIsolatedNodes()
1379 …PrimitiveCNode(output->cast<CNodePtr>()->input(kDependAttachNodeIndex), prim::kPrimStopGradient)) { in AttachToOutput()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/
Dfunction_block.cc544 AnfNodePtr stop_grad_node = func_graph_->NewCNode({NewValueNode(prim::kPrimStopGradient), state}); in AttachIsolatedNodesBeforeReturn()
/third_party/mindspore/mindspore/ccsrc/frontend/operator/
Dops_front_infer_function.cc668 REGISTER_PRIMITIVE_FRONT_EVAL_IMPL(StopGradient, prim::kPrimStopGradient, InferImplStopGradient, nu…
/third_party/mindspore/mindspore/core/base/
Dcore_ops.h710 inline const PrimitivePtr kPrimStopGradient = std::make_shared<Primitive>("stop_gradient"); variable