Home
last modified time | relevance | path

Searched refs:kPrimReduceSum (Results 1 – 25 of 27) sorted by relevance

12

/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/
Dconfusion_softmax_grad_rule.h30 reduce_sum_ = std::make_shared<Var>(std::make_shared<Primitive>(prim::kPrimReduceSum->name()));
Dsoftmax_grad_ext_fusion.h32 sum_var_ = std::make_shared<Var>(std::make_shared<Primitive>(prim::kPrimReduceSum->name())); in PatternProcessPass()
Dsquare_sum_fusion.cc96 return VectorRef({prim::kPrimReduceSum, VectorRef({prim::kPrimSquare, X})}); in DefinePattern()
Dconfusion_mul_grad_fusion.cc122 VectorRef reduce_sum({prim::kPrimReduceSum, mul1}); in DefinePattern()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/
Daxis_normalizer.cc27 …std::vector<PrimitivePtr> node_with_axis = {prim::kPrimReduceSum, prim::kPrimReduceMax, prim::kPri… in IsReduce()
Dadd_atomic_clean.h50 PrimitivePtr target_type_{prim::kPrimReduceSum};
Draise_reduction_precision.cc31 …return IsPrimitiveCNode(node, prim::kPrimReduceSum) && AnfAlgo::GetInputDeviceDataType(node, 0) ==… in IsFp16ReduceSum()
Dadd_stitch_atomic_clean_gpu.cc117 …etNodeAttr<std::string>(n, kAttrStitch) == "atomic" && IsPrimitiveCNode(n, prim::kPrimReduceSum)) { in IsStitchWithAtomic()
Dadd_atomic_clean.cc41 if (!IsPrimitiveCNode(node, prim::kPrimReduceSum)) { in GetUniqReduceAxes()
78 if (IsPrimitiveCNode(n, prim::kPrimReduceSum)) { in HaveReduceInPredecessors()
Ddecrease_transfer_precision.cc52 if (AnfAlgo::GetCNodeName(input_node) == prim::kPrimReduceSum->name()) { in IsPreNodeReduce()
Ddecrease_compute_precision.cc216 …std::vector<PrimitivePtr> cast_aware_list = {prim::kPrimReduceSum, prim::kPrimReduceMean, prim::kP… in IsCastUnAware()
Dgraph_kernel_cluster.cc49 {kAllTarget, OpLevel_1, prim::kPrimReduceSum}, in GetClusterableOpList()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Dbce_with_logits_loss_fusion.cc49 …reduce_inputs = {NewValueNode(std::make_shared<Primitive>(prim::kPrimReduceSum->name())), new_cnod… in AddReduceNode()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/
Dbce_with_logits_loss_fission.cc51 …reduce_inputs = {NewValueNode(std::make_shared<Primitive>(prim::kPrimReduceSum->name())), new_cnod… in AddReduceNode()
Ddynamic_gru_v2_grad_fission.cc415 …dePtr> reducesum_inputs = {NewValueNode(std::make_shared<Primitive>(prim::kPrimReduceSum->name())), in CreateDwReduceSumDNode()
432 …dePtr> reducesum_inputs = {NewValueNode(std::make_shared<Primitive>(prim::kPrimReduceSum->name())), in CreateDbReduceSumDNode()
Ddynamic_rnn_grad_fission_v2.cc455 …ePtr> reduce_sum_inputs = {NewValueNode(std::make_shared<Primitive>(prim::kPrimReduceSum->name())), in CreateDwReduceSum()
505 …ePtr> reduce_sum_inputs = {NewValueNode(std::make_shared<Primitive>(prim::kPrimReduceSum->name())), in CreateDbReduceSum()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Dvalue_based_eliminate.cc74 if (IsPrimitiveCNode(node, prim::kPrimReduceSum) || IsPrimitiveCNode(node, prim::kPrimSqueeze)) { in IsCNodePositive()
Dreduce_eliminate.h47 … IsPrimitiveCNode(node, prim::kPrimReduceSum) || IsPrimitiveCNode(node, prim::kPrimReduceMax) || in operator()
Dbranch_culling.cc63 {prim::kPrimReduceSum, {2}}, in InConvertWhiteList()
87 {prim::kPrimReduceSum, {2}}, {prim::kPrimReduceMean, {2}}, in InConvertWhiteList()
/third_party/mindspore/mindspore/core/abstract/
Dprimitive_infer_map.cc46 const auto kReduceSum = prim::kPrimReduceSum->name(); in GetDependsFormMap()
221 {prim::kPrimReduceSum, {ops::ReduceSumInfer, nullptr, true}}, in GetPrimitiveToBackendEvalImplMap()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/
Dconst_input_to_attr_registry.cc39 Register(prim::kPrimReduceSum->name(), {1}); in ConstInputToAttrInfoRegistry()
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/
Dreduce_ops_declare.cc69 REG_ADPT_DESC(ReduceSumD, prim::kPrimReduceSum->name(), ADPT_DESC(ReduceSumD))
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dreduce_cpu_kernel.cc76 } else if (kernel_name_ == prim::kPrimReduceSum->name()) { in InitKernel()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dirpass.cc101 …{prim::kPrimReduceMean, prim::kPrimReduceAll, prim::kPrimReduceSum, prim::kPrimReduceMax, prim::kP… in OptimizeIRPassLib()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dkernel_select_graph_kernel.cc317 if (!IsPrimitiveCNode(cnode, prim::kPrimReduceSum)) { in UpdateEquivFormat()

12