Home
last modified time | relevance | path

Searched refs:NewCNode (Results 1 – 25 of 272) sorted by relevance

1234567891011

/third_party/mindspore/tests/ut/cpp/session/
Danf_runtime_algorithm_test.cc58 auto add = kernel_graph->NewCNode(inputs); in TEST_F()
65 auto add_second = kernel_graph->NewCNode(add_inputs); in TEST_F()
67 auto make_tuple = kernel_graph->NewCNode(make_tuple_inputs); in TEST_F()
84 auto tuple_get_item = kernel_graph->NewCNode(tuple_get_item_inputs); in TEST_F()
91 auto depend = kernel_graph->NewCNode(depend_inputs); in TEST_F()
103 auto add = kernel_graph->NewCNode(inputs); in TEST_F()
113 auto add = kernel_graph->NewCNode(inputs); in TEST_F()
125 auto add = kernel_graph->NewCNode(inputs); in TEST_F()
134 auto add = kernel_graph->NewCNode(inputs); in TEST_F()
148 auto add = kernel_graph->NewCNode(add_inputs); in TEST_F()
[all …]
Dkernel_graph_test.cc97 TEST_F(KernelGraphTest, NewCNode) { in TEST_F() argument
101 auto new_cnode = kernel_graph->NewCNode(inputs); in TEST_F()
153 auto add = kernel_graph->NewCNode(add_inputs); in TEST_F()
162 auto mul = kernel_graph->NewCNode(mul_inputs); in TEST_F()
167 auto make_tuple = kernel_graph->NewCNode(make_tuple_inputs); in TEST_F()
/third_party/mindspore/tests/ut/cpp/pipeline/static_analysis/
Dspecialize_test.cc65 CNodePtr cnode_g_ret = graph_g_->NewCNode(inputs); in SetUp()
77 CNodePtr cnode_f = graph_f_->NewCNode(inputs); in SetUp()
81 CNodePtr cnode_f_ret = graph_f_->NewCNode(inputs); in SetUp()
102 CNodePtr cnode_add = graph_beta_->NewCNode(inputs); in SetUp()
106 CNodePtr cnode_return = graph_beta_->NewCNode(inputs); in SetUp()
113 CNodePtr cnode_graph_beta_ = graph_alpha_->NewCNode(inputs); in SetUp()
118 cnode_return = graph_alpha_->NewCNode(inputs); in SetUp()
171 CNodePtr cnode_add = graph_g->NewCNode(inputs); in GenerateFromTypes()
176 CNodePtr cnode_return = graph_g->NewCNode(inputs); in GenerateFromTypes()
200 CNodePtr cnode_add = graph_->NewCNode(inputs); in SetUp()
[all …]
Dstatic_analysis_test.cc105 CNodePtr cnode_add = fg->NewCNode(inputs); in GenerateFromTypes()
110 CNodePtr cnode_return = fg->NewCNode(inputs); in GenerateFromTypes()
142 CNodePtr cnode_add = func_graph->NewCNode(inputs); in MakeFuncGraph()
146 CNodePtr cnode_return = func_graph->NewCNode(inputs); in MakeFuncGraph()
198 CNodePtr cnode_g_ret = graph_g_->NewCNode(inputs); in SetUp()
210 CNodePtr cnode_f = graph_f_->NewCNode(inputs); in SetUp()
214 CNodePtr cnode_f_ret = graph_f_->NewCNode(inputs); in SetUp()
235 CNodePtr cnode_add = graph_beta_->NewCNode(inputs); in SetUp()
239 CNodePtr cnode_return = graph_beta_->NewCNode(inputs); in SetUp()
246 CNodePtr cnode_graph_beta_ = graph_alpha_->NewCNode(inputs); in SetUp()
[all …]
/third_party/mindspore/tests/ut/cpp/ir/
Dmanager_test.cc261 CNodePtr cnode_add = func_graph->NewCNode(inputs); in MakeFuncGraph()
265 CNodePtr cnode_return = func_graph->NewCNode(inputs); in MakeFuncGraph()
286 CNodePtr cnode_f = f->NewCNode(inputs); in MakeNestedGraph()
292 CNodePtr cnode_g = fg->NewCNode(inputs); in MakeNestedGraph()
320 CNodePtr cnode_add = graph_bar->NewCNode(inputs); in MakeNestedGraph2()
324 CNodePtr cnode_return = graph_bar->NewCNode(inputs); in MakeNestedGraph2()
331 CNodePtr cnode_graph_bar = graph_foo->NewCNode(inputs); in MakeNestedGraph2()
336 cnode_return = graph_foo->NewCNode(inputs); in MakeNestedGraph2()
366 CNodePtr cnode_add = func_graph->NewCNode(inputs); in TEST_F()
370 CNodePtr cnode_return = func_graph->NewCNode(inputs); in TEST_F()
[all …]
/third_party/mindspore/tests/ut/cpp/optimizer/
Dclean_test.cc68 AnfNodePtr cnode_57 = me_graph->NewCNode({valuenode_next, parameter}); in SetUp()
71 …AnfNodePtr cnode_67 = me_graph->NewCNode({NewValueNode(prim::kPrimPartial), valuenode_next, parame… in SetUp()
74 …AnfNodePtr cnode_66 = me_graph->NewCNode({NewValueNode(prim::kPrimScalarAdd), cnode_57, cnode_67}); in SetUp()
78 CNodePtr cnode_55 = me_graph->NewCNode({valuenode_return, cnode_66}); in SetUp()
150 auto apply22 = func_graph->NewCNode(inputs); in TEST_F()
153 auto apply11 = func_graph->NewCNode({cons_return, apply22}); in TEST_F()
185 auto apply22 = func_graph->NewCNode(inputs); in TEST_F()
187 auto apply33 = func_graph->NewCNode(inputs_nopara); in TEST_F()
189 auto apply11 = func_graph->NewCNode({NewValueNode(prim::kPrimScalarAdd), apply22, apply33}); in TEST_F()
192 auto apply00 = func_graph->NewCNode({cons_return, apply11}); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/
Ddynamic_rnn_grad_fission_v2.cc55 auto basic_lstm_cell_c_state_grad = func_graph->NewCNode(basic_lstm_cell_c_state_grad_inputs); in CreateTLoopNode()
69 auto matmul = func_graph->NewCNode(matmul_inputs); in CreateTLoopNode()
77 auto split_v = func_graph->NewCNode(splitv_input); in CreateTLoopNode()
108 auto lstm_split = func_graph->NewCNode(lstm_split_input); in CreateLSTMSPlitV()
194 auto reshape = func_graph->NewCNode(reshape_inputs); in AddLSTMInputGradNode()
216 auto basic_lstm_cell_c_state_grad = func_graph->NewCNode(basic_lstm_cell_c_state_grad_inputs); in AddLSTMInputGradNode()
230 auto matmul = func_graph->NewCNode(matmul_inputs); in AddLSTMInputGradNode()
238 auto split_v = func_graph->NewCNode(splitv_input); in AddLSTMInputGradNode()
261 auto reshape = func_graph->NewCNode(reshape_input); in AddLSTMInputGradNode()
268 auto lstm_x_concat = func_graph->NewCNode(lstm_x_concat_input); in AddLSTMInputGradNode()
[all …]
Ddynamic_gru_v2_grad_fission.cc98 auto gru_v2_hidden_grad_cell_op = func_graph->NewCNode(gru_v2_hidden_grad_cell_inputs); in CreateGRUV2HiddenGradCellNode()
140 auto reshape = func_graph->NewCNode(reshape_inputs); in AddTLoopNode()
145 auto matmul_node = func_graph->NewCNode(matmul_inputs); in AddTLoopNode()
177 auto concat_t_node = func_graph->NewCNode(concat_inputs); in AddTConcatNode()
222 auto split_v = func_graph->NewCNode(splitv_input); in AddHSplitNode()
251 auto reshape = graph->NewCNode(reshape_input); in CreateHReshape()
273 auto concat = func_graph->NewCNode(concat_inputs); in AddHConcatNode()
300 auto batch_matmul = func_graph->NewCNode(matmul_inputs); in AddDwhMatmulNode()
320 auto split_vd = func_graph->NewCNode(splitvd_input); in CreateDgateHSplitVDNode()
349 auto concat_op = func_graph->NewCNode(concat_inputs); in CreateDgateXConcatDNode()
[all …]
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Darithmetic_simplify.cc53 …auto ttmul = NewCNode({mul_node, const_.GetNode(node), const_2.GetNode(node)}, node->func_graph()); in operator ()()
54 return NewCNode({mul_node, x.GetNode(node), ttmul}, node->func_graph()); in operator ()()
56 auto new_cnode = NewCNode({mul_node, x.GetNode(node), new_mul_tensor}, node->func_graph()); in operator ()()
116 z_ = NewCNode(cnode_z->inputs(), fg); in operator ()()
162 AnfNodePtr tuple = NewCNode({make_tuple_op_node, z_, x_}, fg); in operator ()()
163 AnfNodePtr add = NewCNode({addn_op_node, tuple}, fg); in operator ()()
164 AnfNodePtr all_reduce = NewCNode({all_reduce_prim, add}, fg); in operator ()()
165 AnfNodePtr mul = NewCNode({mul_prim, all_reduce, y.GetNode(node)}, fg); in operator ()()
Denv_item_eliminate.h82 …new_fg->set_output(new_fg->NewCNode({NewValueNode(prim::kPrimEnvGetItem), env, NewValueNode(key), … in operator()
145 …new_fg->set_output(new_fg->NewCNode({NewValueNode(prim::kPrimEnvGetItem), env, NewValueNode(key), … in operator()
200 auto xcz = fg->NewCNode({NewValueNode(prim::kPrimEnvGetItem), x, c, z}); in operator()
201 auto ycz = fg->NewCNode({NewValueNode(prim::kPrimEnvGetItem), y, c, z}); in operator()
203 return fg->NewCNode({NewValueNode(PrimHyperAdd_), xcz, ycz}); in operator()
273 … return node->func_graph()->NewCNode({NewValueNode(prim::kPrimEnvGetItem), env, key2, default_v}); in operator()
343 return node->func_graph()->NewCNode(args); in operator()
400 …auto new_sw = fg->NewCNode({NewValueNode(prim::kPrimSwitch), x, NewValueNode(new_g1), NewValueNode… in operator()
405 return fg->NewCNode(args); in operator()
473 auto layers_node = fg->NewCNode(prim::kPrimMakeTuple, layers); in operator()
[all …]
Dbranch_culling.cc37 auto switch_apply = graph->NewCNode(switch_nodes); in GenerateSwitchNode()
40 return graph->NewCNode(tuple_getitem_nodes); in GenerateSwitchNode()
193 auto new_node = graph->NewCNode(); in TransformGraphCondBranchNodes()
242 auto square_op = graph->NewCNode(square_nodes); in SquareOp()
258 merge_nodes.push_back(graph->NewCNode(make_tuple_nodes)); in MergeNode()
259 auto merge_op = graph->NewCNode(merge_nodes); in MergeNode()
282 auto depend_cnode = graph->NewCNode(inputs); in GenerateSwitchDependNode()
351 auto make_tuple_op = graph->NewCNode(new_make_tuple_nodes); in GenerateReplNodeForDependMakeTuple()
486 merge_nodes.push_back(switch_graph->NewCNode(make_tuple_nodes)); in GenerateMergeNodes()
488 switch_graph->NewCNode(merge_nodes), in GenerateMergeNodes()
[all …]
Dcall_graph_tuple_transform.h100 call_inputs[0] = swich_cnode->func_graph()->NewCNode(switch_inputs); in operator()
106 return switch_call_cnode->func_graph()->NewCNode(call_inputs); in operator()
172 call_inputs[0] = switch_layer_call_cnode->func_graph()->NewCNode(switch_layer_inputs); in operator()
178 return switch_layer_call_cnode->func_graph()->NewCNode(call_inputs); in operator()
203 *trans_node = node->func_graph()->NewCNode(tuple_inputs); in TransformLayerNode()
Dincorporate_getitem.h67 … auto output_node = new_fg->NewCNode({NewValueNode(prim::kPrimTupleGetItem), output, idx_node}); in operator()
119 … auto output_node = new_fg->NewCNode({NewValueNode(prim::kPrimTupleGetItem), output, idx_node}); in operator()
243 shrunk_output = new_fg->NewCNode(shrunk_inputs); in ShrinkUnsedOutput()
435 …node->func_graph()->NewCNode({NewValueNode(prim::kPrimTupleGetItem), fg_call_cnode_, NewValueNode(… in ShrinkFuncGraphOutput()
451 …node->func_graph()->NewCNode({NewValueNode(prim::kPrimTupleGetItem), fg_call_cnode_, NewValueNode(… in ShrinkFuncGraphOutput()
464 auto new_node = origin_node->func_graph()->NewCNode(args_); in TransformFuncGraph()
543 auto new_fg_cnode = node->func_graph()->NewCNode(args_); in operator()
551 auto new_update_cnode = node->func_graph()->NewCNode(new_update_inputs); in operator()
553 … node->func_graph()->NewCNode({NewValueNode(prim::kPrimDepend), new_fg_cnode, new_update_cnode}); in operator()
556 … node->func_graph()->NewCNode({NewValueNode(prim::kPrimDepend), new_fg_cnode, depend_2nd_input_}); in operator()
[all …]
Dmerge_addn.h55 auto make_node = fg->NewCNode(args_); in operator()
57 return fg->NewCNode({addn, make_node}); in operator()
175 auto make_tuple = fg->NewCNode(filtered_Xs_); in operator()
176 return fg->NewCNode({addn, make_tuple}); in operator()
/third_party/mindspore/tests/ut/cpp/optimizer/ad/
Dkpynative_test.cc52 …auto c_node = g->NewCNode({NewValueNode(prim::GetPythonOps("tensor_mul", "mindspore.ops.functional… in BuildPrimalFuncGraph()
70 …auto a_node = g->NewCNode({NewValueNode(prim::GetPythonOps("tensor_mul", "mindspore.ops.functional… in BuildStopGradient()
72 auto b_node = g->NewCNode({NewValueNode(prim::kPrimStopGradient), a_node}); in BuildStopGradient()
74 …auto c_node = g->NewCNode({NewValueNode(prim::GetPythonOps("tensor_mul", "mindspore.ops.functional… in BuildStopGradient()
77 …g->NewCNode({NewValueNode(prim::GetPythonOps("tensor_mul", "mindspore.ops.functional")), a_node, c… in BuildStopGradient()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dclean.cc140 return node->func_graph()->NewCNode({NewValueNode(prim::kPrimTupleGetItem), data, idx_c}); in ConvertGetAttrToTupleGetItem()
180 return node->func_graph()->NewCNode({NewValueNode(prim::kPrimTupleGetItem), data, idx_c}); in ConvertDictGetItemToTupleGetItem()
221 …auto tuple_new_item = node->func_graph()->NewCNode({NewValueNode(prim::kPrimMakeTuple), item_value… in ConvertDictSetItemToTupleSetItem()
222 return node->func_graph()->NewCNode({NewValueNode(tuple_add_op), data, tuple_new_item}); in ConvertDictSetItemToTupleSetItem()
227 …return node->func_graph()->NewCNode({NewValueNode(prim::kPrimTupleSetItem), data, idx_c, item_valu… in ConvertDictSetItemToTupleSetItem()
238 return node->func_graph()->NewCNode(inputs); in ConvertMakeRecordToMakeTuple()
266 return node->func_graph()->NewCNode(new_inputs); in ErasePartialNode()
280 return node->func_graph()->NewCNode(inputs); in ConvertMakeListToMakeTuple()
299 return node->func_graph()->NewCNode({NewValueNode(prim::kPrimTupleGetItem), data, cons_node}); in ConvertListGetItemToTupleGetItem()
318 return node->func_graph()->NewCNode({NewValueNode(prim::kPrimTupleSetItem), data, cons, value}); in ConvertListSetItemToTupleSetItem()
[all …]
Dgraph_transform.cc65 …auto elem_node = fg->NewCNode({NewValueNode(prim::kPrimTupleGetItem), node, NewValueNode(SizeToLon… in TransformTupleArgument()
94 auto new_node = fg->NewCNode(inputs); in TransformCallGraph()
117 auto new_node = fg->NewCNode(inputs); in TransformPartial()
139 auto new_node = fg->NewCNode(inputs); in TransformSwitchCall()
/third_party/mindspore/mindspore/ccsrc/frontend/operator/composite/
Dunpack_call.cc67 …ret_graph->NewCNode({NewValueNode(prim::kPrimTupleGetItem), para_tuple, NewValueNode(SizeToLong(i)… in GenerateFuncGraph()
74 …ret_graph->NewCNode({NewValueNode(prim::kPrimListGetItem), para_list, NewValueNode(SizeToLong(i))}… in GenerateFuncGraph()
82 auto dict_get_item = ret_graph->NewCNode( in GenerateFuncGraph()
84 return ret_graph->NewCNode( in GenerateFuncGraph()
Dzip_operation.cc76 auto tuple_get_item_op = ret_graph->NewCNode(tuple_get_item_nodes); in GenerateFuncGraph()
79 auto make_tuple_zip_op = ret_graph->NewCNode(make_tuple_zip_nodes); in GenerateFuncGraph()
82 ret_graph->set_output(ret_graph->NewCNode(make_tuple_nodes)); in GenerateFuncGraph()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/format_type/
Dinsert_transpose_for_basiclstm_op.cc50 CNodePtr transpose = func_graph->NewCNode(transpose_inputs); in Insert()
58 new_node = kernel_graph->NewCNode(cnode); in Insert()
70 CNodePtr transpose = func_graph->NewCNode(transpose_inputs); in Insert()
79 new_node = func_graph->NewCNode(make_tuple_inputs); in Insert()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/mindir/
Dfake_learned_scale_quant_grad_unify_mindir.cc44 auto lsq_perlayer_grad_d = graph->NewCNode(lsq_perlayer_grad_d_inputs); in CreateOutputsOfLSQPerLayerGradD()
77 auto lsq_perlayer_reduce_grad = graph->NewCNode(lsq_perlayer_reduce_grad_inputs); in CreateOutputsOfLSQPerLayerReduceGrad()
101 auto lsq_perchannel_grad_d = graph->NewCNode(lsq_perchannel_grad_d_inputs); in CreateOutputsOfLSQPerChannelGradD()
135 auto lsq_perchannel_reduce_grad = graph->NewCNode(lsq_perchannel_reduce_grad_inputs); in CreateOutputsOfLSQPerChannelReduceGrad()
178 auto make_tuple = func_graph->NewCNode(make_tuple_inputs); in Process()
215 auto make_tuple = func_graph->NewCNode(make_tuple_inputs); in Process()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/
Dkpynative.cc120 auto zeros_like_node = tape->NewCNode({NewValueNode(zeros_like_fg), node}); in BuildZerosLikeNode()
129 auto zeros_like_value = tape->NewCNode({NewValueNode(zeros_like_fg), NewValueNode(out)}); in BuildZerosLikeValue()
163 auto ones_like_value = tape->NewCNode({NewValueNode(ones_like_fg), NewValueNode(out)}); in BuildOnesLikeValue()
176 auto fake_input_sens = func_graph->NewCNode({NewValueNode(fake_bprop), NewValueNode(true)}); in BuildFakeBProp()
188 func_graph->set_output(func_graph->NewCNode(outputs)); in BuildFakeBProp()
223 dout_ = tape_->NewCNode({NewValueNode(add_fg), dout_, dout_factor}); in AccumulateDout()
693 …din = tape_->NewCNode({NewValueNode(prim::kPrimTupleGetItem), bprop_app, NewValueNode(SizeToLong(i… in BackPropagate()
697 …din = tape_->NewCNode({NewValueNode(prim::kPrimTupleGetItem), bprop_app, NewValueNode(SizeToLong(i… in BackPropagate()
780 auto bprop_app = tape_->NewCNode(node_list); in BackPropagateOneCNodeWithBPropFuncGraph()
817 auto bprop_app = tape_->NewCNode(node_list); in BackPropagateOneCNodeWithFPropFuncGraph()
[all …]
Dkprim.cc193 return fg->NewCNode(new_inputs); in GetPythonOps()
370 output_cnode = bprop_fg->NewCNode({make_tuple, monad}); in AppendMonadOutput()
511 return NewCNode(args, bprop_fg); in BuildOutput()
517 auto tuple_env = NewCNode({NewValueNode(prim::kPrimMakeTuple), NewValueNode(newenv)}, bprop_fg); in BuildOutput()
521 auto extra_tuple = NewCNode(extra_args, bprop_fg); in BuildOutput()
522 auto old_output_extra = NewCNode({tuple_add_ops, bprop_fg->output(), extra_tuple}, bprop_fg); in BuildOutput()
523 return NewCNode({tuple_add_ops, tuple_env, old_output_extra}, bprop_fg); in BuildOutput()
526 return NewCNode({tuple_add_ops, tuple_env, bprop_fg->output()}, bprop_fg); in BuildOutput()
620 …bprop_fg->NewCNode({NewValueNode(check_bprop_class), NewValueNode(std::make_shared<StringImm>(prim… in CheckBprop()
628 AnfNodePtr params = bprop_fg->NewCNode(inputs); in CheckBprop()
[all …]
/third_party/mindspore/mindspore/lite/tools/converter/import/
Dmindir_control_flow_adjust.cc92 auto after_partial_cnode = fg->NewCNode(after_partial_cnode_inputs); in ModifyFgToCallAfterFg()
99 auto call_node = fg->NewCNode(call_node_inputs); in ModifyFgToCallAfterFg()
138 auto make_tuple_cnode = after_fg->NewCNode(make_tuple_inputs); in AddAfterFuncGraph()
149 auto cnode = after_fg->NewCNode(op_inputs); in AddAfterFuncGraph()
162 auto return_cnode = after_fg->NewCNode(op_inputs); in AddAfterFuncGraph()
252 auto partial_cnode = graph->NewCNode(partial_cnode_inputs); in InsertPartialFusionForRawCall()
/third_party/mindspore/mindspore/lite/tools/optimizer/graph/
Dadd_tensor_array.cc88 …auto make_tuple_cnode = func_graph->NewCNode({make_tuple_vnode, output_node, tensor_array_write_no… in SetGraphOutput()
103 auto new_return_node = func_graph->NewCNode({return_value_node, make_tuple_cnode}); in SetGraphOutput()
176 auto tensor_array_node = func_graph->NewCNode({tensor_array_vnode, num_tensors_vnode}); in Process()
191 …func_graph->NewCNode({tensor_array_read_vnode, tensor_array_node, read_index_vnode, read_flow_in_v… in Process()
207 …func_graph->NewCNode({tensor_array_write_vnode, tensor_array_node, write_index_vnode, cnode, write… in Process()

1234567891011