Home
last modified time | relevance | path

Searched refs:cnode_ (Results 1 – 17 of 17) sorted by relevance

/third_party/mindspore/mindspore/lite/tools/optimizer/parallel/
Dconv2d_info.cc94 …auto conv_prim = GetValueNode<std::shared_ptr<ops::Conv2DFusion>>(cnode_->input(kAnfPrimitiveIndex… in CheckIfSplit()
102 auto input_node_abstract = GetCNodeInputAbstract(cnode_, 1); in CheckIfSplit()
104 auto weight_node_abstract = GetCNodeInputAbstract(cnode_, 2); in CheckIfSplit()
157 …auto conv_prim = GetValueNode<std::shared_ptr<ops::Conv2DFusion>>(cnode_->input(kAnfPrimitiveIndex… in CreateOutputsOfSplit()
209 if (cnode_ == nullptr) { in CheckConv2DPrimitiveType()
212 …if (!CheckPrimitiveType(cnode_, prim::kPrimConv2D) && !CheckPrimitiveType(cnode_, prim::kPrimConv2… in CheckConv2DPrimitiveType()
215 auto prim = GetValueNode<PrimitivePtr>(cnode_->input(kAnfPrimitiveIndex)); in CheckConv2DPrimitiveType()
246 …auto feature_split_cnode = CreateOutputsOfSplit(cnode_, 0, &feature_split_outputs, kAxisH, dev_num… in InferParallelCNodes()
262 …auto conv_prim = GetValueNode<std::shared_ptr<ops::Conv2DFusion>>(cnode_->input(kAnfPrimitiveIndex… in InferParallelCNodes()
276 std::string conv_cnode_name = cnode_->fullname_with_scope(); in ConstructOutputCNodes()
[all …]
Ddepthwise_conv2d_info.cc194 bool has_bias = cnode_->size() > kBiasIndex + 1; in CheckSplitOutputs()
276 std::string conv_cnode_name = cnode_->fullname_with_scope(); in AdJustInputs()
277 bool has_bias = cnode_->size() > kBiasIndex + 1; in AdJustInputs()
281 conv_inputs.push_back(cnode_->input(kWeightIndex + 1)); in AdJustInputs()
283 conv_inputs.push_back(cnode_->input(kBiasIndex + 1)); in AdJustInputs()
292 conv_inputs.push_back(cnode_->input(1)); in AdJustInputs()
335 …auto depth_wise_conv_prim = GetValueNode<std::shared_ptr<ops::Conv2DFusion>>(cnode_->input(kAnfPri… in CreateOutputsOfSplit()
397 auto prim = GetValueNode<PrimitivePtr>(cnode_->input(kAnfPrimitiveIndex)); in CheckDepthWiseConv2DPrimitiveType()
404 …if (!CheckPrimitiveType(cnode_, prim::kPrimConv2D) && !CheckPrimitiveType(cnode_, prim::kPrimConv2… in CheckDepthWiseConv2DPrimitiveType()
422 auto constant_node = cnode_->input(input_index + 1); in CreateConstantOutputsOfSplit()
[all …]
Doperator_info.h54 cnode_(nullptr) {} in OperatorInfo()
87 CNodePtr cnode_{nullptr};
Doperator_info.cc55 cnode_ = cnode; in Init()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/akg/
Dakg_kernel_json_decoder.cc109 if (!DecodeInputDesc(cnode_json, func_graph) || cnode_ == nullptr) { in DecodeCNode()
119 return cnode_; in DecodeCNode()
194 cnode_ = func_graph->NewCNode(inputs); in DecodeInputDesc()
195 func_graph->AddNode(cnode_); in DecodeInputDesc()
210 nodes_map_[output_desc[kJsonKeyTensorName]] = cnode_; in DecodeOutputDesc()
219 …func_graph->NewCNode({NewValueNode(prim::kPrimTupleGetItem), cnode_, NewValueNode(SizeToLong(j))}); in DecodeOutputDesc()
232 const auto &inputs = cnode_->inputs(); in CreateKernelInfo()
247 if (AnfAlgo::GetCNodeName(cnode_) == prim::kPrimCast->name()) { in CreateKernelInfo()
248 AnfAlgo::SetNodeAttr(kIsBackendCast, MakeValue(false), cnode_); in CreateKernelInfo()
253 if (AnfAlgo::IsRealCNodeKernel(cnode_)) { in CreateKernelInfo()
[all …]
Dakg_kernel_json_generator.cc49 cnode_ = anf_node->cast<CNodePtr>(); in Run()
50 MS_EXCEPTION_IF_NULL(cnode_); in Run()
52 op_info->set_op_name(AnfAlgo::GetCNodeName(cnode_)); in Run()
62 auto dyn_input_sizes = GetDynInputSize(cnode_); in ExtractInputs()
64 for (size_t i = 1; i < cnode_->size(); i++) { in ExtractInputs()
80 size_t output_tensor_num = AnfAlgo::GetOutputTensorNum(cnode_); in ExtractOutputs()
95 auto prim = GetCNodePrimitive(cnode_); in ExtractAttrs()
129 CNodePtr cnode_; member in mindspore::kernel::__anon7556c0a80111::OpInfoExtractor
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ops_info/
Donehot_info.cc133 if (!cnode_) { in ExtractInputInfo()
137 if (cnode_->inputs().size() != 5) { in ExtractInputInfo()
139 << cnode_->inputs().size(); in ExtractInputInfo()
150 …MS_LOG(WARNING) << "Input 2 of cnode is not a value node, its type is " << cnode_->input(2)->type_… in ExtractInputInfo()
215 Status status = ComputeReplaceGraph(cnode_); in Init()
Doperator_info.h70 cnode_ = nullptr; in OperatorInfo()
159 void set_cnode(const CNodePtr &cnode) { cnode_ = cnode; } in set_cnode()
287 CNodePtr cnode_; variable
Ddropout_do_mask_info.cc219 auto cnode = cnode_; in GetDropoutGenMaskReplaceOp()
296 auto cnode = cnode_; in ReplaceNodeInputOrAttrs()
Duniform_real_info.cc142 auto cnode = cnode_; in ReplaceNodeInputOrAttrs()
Dbatch_parallel_info.cc184 auto cnode = cnode_; in ReplaceNodeInputOrAttrs()
Dtile_info.cc159 auto cnode = cnode_; in UpdateMultiples()
Doperator_info.cc1725 MS_EXCEPTION_IF_NULL(cnode_); in cnode()
1726 return cnode_; in cnode()
Dconv2d_info.cc1052 auto cnode = cnode_; in UpdateOutShape()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/graph_util/
Dgenerate_graph.cc136 cnode_ = cnode; in Init()
147 scope_ = cnode_->scope(); in Init()
154 instance_name_base_ = GetInstanceNameByCNode(cnode_); in Init()
Dgenerate_graph.h59 CNodePtr cnode_;
/third_party/mindspore/mindspore/core/ir/
Dmanager.cc96 AddEdge(const CNodePtr &cnode, const AnfNodePtr &input) : cnode_{cnode}, input_{input} {} in AddEdge()
100 int index = static_cast<int>(cnode_->size()); in Apply()
101 cnode_->add_input(input_); in Apply()
103 counter->new_edges.add(std::move(cnode_), index, std::move(input_)); in Apply()
107 CNodePtr cnode_; member in mindspore::change::AddEdge