Home
last modified time | relevance | path

Searched refs:make_tuple_node (Results 1 – 8 of 8) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/
Dpynative_dfunctor.cc98 auto make_tuple_node = output->cast<CNodePtr>(); in GetForwardOutNodeAndBpropGraph() local
99 MS_EXCEPTION_IF_NULL(make_tuple_node); in GetForwardOutNodeAndBpropGraph()
101 if (make_tuple_node->size() != input_size) { in GetForwardOutNodeAndBpropGraph()
102 …MS_LOG(EXCEPTION) << "The inputs size of make tuple node " << make_tuple_node->DebugString() << " … in GetForwardOutNodeAndBpropGraph()
108 const auto &output_node = make_tuple_node->input(forward_output_index); in GetForwardOutNodeAndBpropGraph()
116 const auto &bprop_vnode = make_tuple_node->input(bprop_graph_index); in GetForwardOutNodeAndBpropGraph()
/third_party/mindspore/mindspore/lite/tools/anf_exporter/
Dfetch_content.cc474 auto make_tuple_node = utils::cast<CNodePtr>(input_node); in RemoveIfMakeTuple() local
475 MS_CHECK_TRUE_MSG(make_tuple_node != nullptr, RET_NULL_PTR, "make_tuple_node is nullptr"); in RemoveIfMakeTuple()
476 auto value_node = make_tuple_node->input(0)->cast<ValueNodePtr>(); in RemoveIfMakeTuple()
478 …if (value_node->value() != nullptr && (opt::CheckPrimitiveType(make_tuple_node, prim::kPrimMakeTup… in RemoveIfMakeTuple()
479 … opt::CheckPrimitiveType(make_tuple_node, opt::kPrimMakeTupleV2))) { in RemoveIfMakeTuple()
481 for (size_t j = 1; j < make_tuple_node->inputs().size(); ++j) { in RemoveIfMakeTuple()
482 inputs.emplace_back(make_tuple_node->input(j)); in RemoveIfMakeTuple()
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/
Dtf_lstm_cell_fusion.cc174 VectorRef make_tuple_node = VectorRef(outputs); in GetBodyGraphPattern() local
177 VectorRef return_node = VectorRef({is_return, make_tuple_node}); in GetBodyGraphPattern()
Dtflite_lstm_cell_fusion.cc272 VectorRef make_tuple_node = VectorRef(outputs); in GetBodyGraphPattern() local
275 VectorRef return_node = VectorRef({is_return, make_tuple_node}); in GetBodyGraphPattern()
Dtf_bidirection_gru_fusion.cc367 VectorRef make_tuple_node = VectorRef(outputs); in GetBodyGraphPattern() local
370 VectorRef return_node = VectorRef({is_return, make_tuple_node}); in GetBodyGraphPattern()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/
Dauto_monad.cc1184 auto make_tuple_node = func_graph_->NewCNode(tuple_inputs); in HandleNoEliminateNodes() local
1185 make_tuple_node->set_abstract(std::make_shared<abstract::AbstractTuple>(element_abstracts)); in HandleNoEliminateNodes()
1186 AttachToOutput(make_tuple_node); in HandleNoEliminateNodes()
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dsession_basic.cc885 auto make_tuple_node = switch_layer_cnode->input(kMakeTupleInSwitchLayerIndex); in CreateCallSwitchLayerInputs() local
886 MS_EXCEPTION_IF_NULL(make_tuple_node); in CreateCallSwitchLayerInputs()
887 auto node = make_tuple_node->cast<CNodePtr>(); in CreateCallSwitchLayerInputs()
929 auto abstract = make_tuple_node->abstract(); in CreateCallSwitchLayerInputs()
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/
Dconvert.cc795 auto make_tuple_node = make_tuple_iter->cast<CNodePtr>(); in GetCaseNodeInput() local
811 tuple_out_handle_cache_[make_tuple_node.get()] = tuple_items; in GetCaseNodeInput()