Home
last modified time | relevance | path

Searched refs:prim_node (Results 1 – 14 of 14) sorted by relevance

/third_party/mindspore/mindspore/core/utils/
Dparallel_node_check.cc77 const auto &prim_node = cnode->input(0)->cast<ValueNodePtr>(); in IsParallelConsiderCNode() local
78 if (prim_node == nullptr) { in IsParallelConsiderCNode()
81 const auto &prim = prim_node->value()->cast<PrimitivePtr>(); in IsParallelConsiderCNode()
/third_party/mindspore/mindspore/lite/tools/optimizer/graph/
Dgroup_depthwise_op_convert_pass.cc47 auto prim_node = conv_cnode->input(0); in Run() local
48 MS_ASSERT(prim_node != nullptr); in Run()
49 auto prim_value_node = prim_node->cast<ValueNodePtr>(); in Run()
Ddecrease_transpose_algo.cc278 auto prim_node = cnode->input(0); in InsertPreTransNode() local
279 MS_CHECK_TRUE_MSG(prim_node != nullptr, lite::RET_ERROR, "prim_node is nullptr"); in InsertPreTransNode()
280 auto prim = GetValueNode<PrimitivePtr>(prim_node); in InsertPreTransNode()
770 auto prim_node = cnode->input(0); in RunDoFixFormat() local
771 auto prim = GetValueNode<PrimitivePtr>(prim_node); in RunDoFixFormat()
/third_party/mindspore/mindspore/lite/tools/optimizer/format/
Dto_nhwc_format.cc23 auto prim_node = cnode->input(0); in GetTransNodeFormatType() local
24 auto prim = GetValueNode<PrimitivePtr>(prim_node); in GetTransNodeFormatType()
Dto_nchw_format.cc23 auto prim_node = cnode->input(0); in GetTransNodeFormatType() local
24 auto prim = GetValueNode<PrimitivePtr>(prim_node); in GetTransNodeFormatType()
Dto_format_base.cc112 auto prim_node = cnode->input(0); in InsertPreTransNode() local
113 auto prim = GetValueNode<PrimitivePtr>(prim_node); in InsertPreTransNode()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/
Dpattern_engine.cc192 auto prim_node = utils::cast<AnfNodePtr>(values_pattern[0]); in UpdateEquivMap() local
193 MS_EXCEPTION_IF_NULL(prim_node); in UpdateEquivMap()
194 if (!IsValueNode<Primitive>(prim_node)) { in UpdateEquivMap()
197 ValuePtr value = GetValueNode(prim_node); in UpdateEquivMap()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/
Dstep_parallel_utils.cc60 ValueNodePtr prim_node = cnode->input(0)->cast<ValueNodePtr>(); in IsParallelCareNode() local
61 if (prim_node == nullptr) { in IsParallelCareNode()
64 PrimitivePtr prim = prim_node->value()->cast<PrimitivePtr>(); in IsParallelCareNode()
Dstep_auto_parallel.cc184 ValueNodePtr prim_node = cnode->input(0)->cast<ValueNodePtr>(); in IsAutoParallelCareNode() local
185 if (prim_node == nullptr) { in IsAutoParallelCareNode()
188 PrimitivePtr prim = GetValueNode<PrimitivePtr>(prim_node); in IsAutoParallelCareNode()
Dstep_parallel.cc91 auto prim_node = GetValueNode<PrimitivePtr>(anf_node); in SetAllReduceRecomputeFlag() local
92 MS_EXCEPTION_IF_NULL(prim_node); in SetAllReduceRecomputeFlag()
93 auto node_attrs = prim_node->attrs(); in SetAllReduceRecomputeFlag()
97 …MS_LOG(INFO) << "Do not recompute the forward communication operator of " << prim_node->ToString(); in SetAllReduceRecomputeFlag()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dcse.cc138 auto prim_node = GetCNodePrimitive(node); in CheckRandomEffect() local
148 if (prim_main->name() != prim_node->name()) { in CheckRandomEffect()
/third_party/mindspore/mindspore/lite/tools/converter/parser/
Dunify_format.cc137 auto prim_node = cnode->input(0); in GetTransNodeFormatType() local
138 auto prim = GetValueNode<PrimitivePtr>(prim_node); in GetTransNodeFormatType()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Daction.cc913 auto prim_node = cnode->input(0); in KeepValueNodeDuplication() local
914 if (IsValueNode<Primitive>(prim_node)) { in KeepValueNodeDuplication()
915 auto prim = GetValue<PrimitivePtr>(prim_node->cast<ValueNodePtr>()->value()); in KeepValueNodeDuplication()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/graph_util/
Dpipeline_split_utils.cc48 for (auto &prim_node : END_NODE_BLACK_LIST) { in IsInEndNodeBlackList() local
49 if (IsPrimitiveCNode(cnode, prim_node)) { in IsInEndNodeBlackList()