Home
last modified time | relevance | path

Searched refs:node_inputs (Results 1 – 13 of 13) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/frontend/parallel/graph_util/
Dnode_info.cc65 std::vector<AnfNodePtr> node_inputs{node->inputs()}; in ExtractInputParameterByNode() local
67 if ((node_inputs.size() == 2) && in ExtractInputParameterByNode()
68 (IsValueNode<ValueList>(node_inputs[1]) || IsValueNode<ValueTuple>(node_inputs[1]))) { in ExtractInputParameterByNode()
70 if (IsValueNode<ValueList>(node_inputs[1])) { in ExtractInputParameterByNode()
71 inputs_seq = node_inputs[1]->cast<ValueNodePtr>()->value()->cast<ValueListPtr>()->value(); in ExtractInputParameterByNode()
73 inputs_seq = node_inputs[1]->cast<ValueNodePtr>()->value()->cast<ValueTuplePtr>()->value(); in ExtractInputParameterByNode()
77 if ((node_inputs.size() == 2) && in ExtractInputParameterByNode()
78 …(AnfNodeIsPrimitive(node_inputs[1], MAKE_TUPLE) || AnfNodeIsPrimitive(node_inputs[1], MAKE_LIST)))… in ExtractInputParameterByNode()
79 node_inputs = node_inputs[1]->cast<CNodePtr>()->inputs(); in ExtractInputParameterByNode()
81 for (size_t i = 1; i < node_inputs.size(); ++i) { in ExtractInputParameterByNode()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Dbce_with_logits_loss_fusion.cc34 std::vector<AnfNodePtr> node_inputs = { in AddReduceNode() local
36 (void)node_inputs.insert(node_inputs.end(), cnode->inputs().begin() + 1, cnode->inputs().end()); in AddReduceNode()
37 CNodePtr new_cnode = func_graph->NewCNode(node_inputs); in AddReduceNode()
/third_party/mindspore/mindspore/lite/test/ut/tools/converter/registry/parser/
Dmodel_parser_test.cc93 auto node_inputs = model_layers_info_[node_name]; in BuildGraphNodes() local
94 if (node_inputs.empty()) { in BuildGraphNodes()
110 for (auto &input : node_inputs) { in BuildGraphNodes()
/third_party/mindspore/mindspore/ccsrc/vm/
Dgraph_partition.cc146 auto node_inputs = cnode->inputs(); in GetNextNodes() local
148 std::reverse(node_inputs.begin(), node_inputs.end()); in GetNextNodes()
149 return node_inputs; in GetNextNodes()
152 for (auto &input : node_inputs) { in GetNextNodes()
244 auto node_inputs = cnode->inputs(); in GetNodesDependencyInfo() local
246 for (auto &input : node_inputs) { in GetNodesDependencyInfo()
426 auto node_inputs = cnode->inputs(); in AddSegmentDependency() local
432 for (auto &input : node_inputs) { in AddSegmentDependency()
Dtransform.cc180 std::vector<AnfNodePtr> node_inputs = node->inputs(); in InterpretNode() local
181 if (node_inputs.empty()) { in InterpretNode()
184 AnfNodePtr fn = node_inputs[0]; in InterpretNode()
188 for (size_t i = node_inputs.size() - 1; i > 0; i--) { in InterpretNode()
Dbackend.cc615 const std::vector<AnfNodePtr> &node_inputs = cnode->inputs(); in RunControlOperator() local
616 if (node_inputs.empty()) { in RunControlOperator()
620 const AnfNodePtr &fn = node_inputs.at(0); in RunControlOperator()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/
Dupdate_state_formatter.cc93 …AnfNodePtrList node_inputs = {cnode->input(kAnfPrimitiveIndex), cnode->input(kUpdateStateStateInpu… in Run() local
94 node_inputs.insert(node_inputs.end(), inputs.begin(), inputs.end()); in Run()
96 auto new_node = func_graph->NewCNode(node_inputs); in Run()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/aicpu/
Daicpu_kernel_build.cc189 ::mindspore::Tensor *node_inputs = proto->add_inputs(); in SetNodeInputs()
190 MS_EXCEPTION_IF_NULL(node_inputs); in SetNodeInputs()
208 mindspore::TensorShape *tensorShape = node_inputs->mutable_tensor_shape(); in SetNodeInputs()
214 node_inputs->set_tensor_type(input_data_type); in SetNodeInputs()
215 node_inputs->set_mem_device("HBM"); in SetNodeInputs()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Dinline.h278 std::vector<AnfNodePtr> node_inputs; in SimplifyAfterParameter() local
279 node_inputs.push_back(NewValueNode(new_fg)); in SimplifyAfterParameter()
280 … std::transform(used_param_index.begin(), used_param_index.end(), std::back_inserter(node_inputs), in SimplifyAfterParameter()
282 return node->func_graph()->NewCNode(node_inputs); in SimplifyAfterParameter()
/third_party/mindspore/mindspore/lite/tools/converter/
Dexport_model.cc154 std::vector<AnfNodePtr> node_inputs; in CloneFuncGraph() local
179 node_inputs.push_back(mirror_input); in CloneFuncGraph()
181 auto mirror_cnode = mirror_graph->NewCNode(mirrro_prim, node_inputs); in CloneFuncGraph()
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/
Dconvert.cc1647 auto node_inputs = node->cast<CNodePtr>()->inputs(); in GetRealOpNode() local
1648 if (node_inputs.size() != 3) { // "tuple_getitem" primitive must have 3 inputs in GetRealOpNode()
1653 MS_EXCEPTION_IF_NULL(node_inputs[TUPLE_GET_ITEM_INDEX]); in GetRealOpNode()
1654 if (!node_inputs[TUPLE_GET_ITEM_INDEX]->isa<ValueNode>()) { in GetRealOpNode()
1658 auto value_ptr = GetValueNode(node_inputs[TUPLE_GET_ITEM_INDEX])->cast<Int32ImmPtr>(); in GetRealOpNode()
1667 if (IsPrimitiveCNode(node_inputs[1], prim::kPrimMakeTuple)) { in GetRealOpNode()
1677 return GetRealOpNode(node_inputs[1]); in GetRealOpNode()
1697 auto node_inputs = node->cast<CNodePtr>()->inputs(); in ConvertDependNode() local
1698 for (size_t index = 1; index < node_inputs.size(); index++) { in ConvertDependNode()
1699 auto op = Convert(GetRealOpNode(node_inputs[index])); in ConvertDependNode()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/cache_embedding/
Dcache_embedding.cc511 auto node_inputs = node->inputs(); in RemoveOriginParamFromSet() local
512 for (auto &input : node_inputs) { in RemoveOriginParamFromSet()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/
Dstep_parallel.cc2621 std::vector<AnfNodePtr> node_inputs{node->inputs()}; in NodeParameterName() local
2623 for (int64_t i = 0; i < UlongToLong(node_inputs.size()); ++i) { in NodeParameterName()
2625 auto input = node_inputs[LongToSize(i)]; in NodeParameterName()
3191 std::vector<AnfNodePtr> node_inputs{all_inputs.begin() + 1, all_inputs.end()}; in ExtractInputsTensorName() local
3195 for (auto &input : node_inputs) { in ExtractInputsTensorName()