Home
last modified time | relevance | path

Searched refs:graph_cnode (Results 1 – 3 of 3) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/frontend/parallel/pipeline_transformer/
Dpipeline_transformer.h83 bool LabelParameterStart(const FuncGraphPtr &graph, const CNodePtr &graph_cnode);
84 bool NeedGrad(const CNodePtr &cnode, const CNodePtr &graph_cnode);
Dpipeline_transformer.cc91 bool PipelineTransformer::NeedGrad(const CNodePtr &cnode, const CNodePtr &graph_cnode) { in NeedGrad() argument
107 MS_EXCEPTION_IF_NULL(graph_cnode); in NeedGrad()
108 auto real_param = graph_cnode->input(LongToSize(pos + 1)); in NeedGrad()
118 … PipelineTransformer::LabelParameterStart(const FuncGraphPtr &graph, const CNodePtr &graph_cnode) { in LabelParameterStart() argument
137 if (NeedGrad(cnode, graph_cnode)) { in LabelParameterStart()
/third_party/mindspore/mindspore/lite/tools/converter/
Danf_transform.cc110 auto graph_cnode = utils::cast<CNodePtr>(node); in MarkTrainWeightSharingOp() local
111 MS_CHECK_TRUE_RET(graph_cnode != nullptr, RET_ERROR); in MarkTrainWeightSharingOp()
112 auto graph_prim = GetValueNode<PrimitivePtr>(graph_cnode->input(0)); in MarkTrainWeightSharingOp()
117 for (size_t i = 1; i < graph_cnode->inputs().size(); i++) { in MarkTrainWeightSharingOp()
119 if ((graph_cnode->input(i) == cnode->input(j)) && utils::isa<Parameter>(cnode->input(j))) { in MarkTrainWeightSharingOp()