Home
last modified time | relevance | path

Searched refs:set_abstract (Results 1 – 25 of 212) sorted by relevance

123456789

/third_party/mindspore/tests/ut/cpp/optimizer/ad/
Dkpynative_test.cc50 x->set_abstract(BuildArg()); in BuildPrimalFuncGraph()
51 y->set_abstract(BuildArg()); in BuildPrimalFuncGraph()
53 c_node->set_abstract(BuildArg()); in BuildPrimalFuncGraph()
68 x->set_abstract(BuildArg()); in BuildStopGradient()
69 y->set_abstract(BuildArg()); in BuildStopGradient()
71 a_node->set_abstract(BuildArg()); in BuildStopGradient()
73 b_node->set_abstract(BuildArg()); in BuildStopGradient()
75 c_node->set_abstract(BuildArg()); in BuildStopGradient()
78 d_node->set_abstract(BuildArg()); in BuildStopGradient()
/third_party/mindspore/tests/ut/cpp/optimizer/
Dclean_test.cc60 parameter->set_abstract(para_tuple); in SetUp()
69 cnode_57->set_abstract(app_tuple); in SetUp()
72 cnode_67->set_abstract(app_tuple); in SetUp()
75 cnode_66->set_abstract(app_float); in SetUp()
79 cnode_55->set_abstract(app_tuple); in SetUp()
111 node->set_abstract(abs_ptr); in TEST_F()
140 para1->set_abstract(std::make_shared<AbstractScalar>(kAnyValue, kInt64)); in TEST_F()
141 para2->set_abstract(std::make_shared<AbstractScalar>(kAnyValue, kInt64)); in TEST_F()
147 cons_class->set_abstract(abs_ptr); in TEST_F()
154 apply11->set_abstract(abs_ptr); in TEST_F()
[all …]
Dlib_test.cc186 x_node->set_abstract(x_abstract); in TEST_F()
191 val->set_abstract(t_abstract); in TEST_F()
201 val->set_abstract(t_abstract); in TEST_F()
216 x_node->set_abstract(x_abstract); in TEST_F()
217 before->output()->set_abstract(x_abstract); in TEST_F()
226 x_node->set_abstract(x_abstract); in TEST_F()
282 x_node->set_abstract(x_abstract); in TEST_F()
304 x_node->set_abstract(x_abstract); in TEST_F()
325 x_node->set_abstract(x_abstract); in TEST_F()
528 x_node->set_abstract(x_abstract); in TEST_F()
[all …]
/third_party/mindspore/tests/ut/cpp/pre_activate/mem_reuse/
Dmem_reuse_test.cc68 y_const->set_abstract(y_tensor->ToAbstract()); in CreateKernelGraph()
69 z_const->set_abstract(z_tensor->ToAbstract()); in CreateKernelGraph()
87 kernelptr_first->set_abstract(y_tensor->ToAbstract()); in CreateKernelGraph()
117 kernelptr_floor->set_abstract(y_tensor->ToAbstract()); in CreateKernelGraph()
140 ret->set_abstract(y_tensor->ToAbstract()); in CreateKernelGraph()
160 original_x_parameter->set_abstract(abstract); in CreateGraphWithExecOrder()
164 original_y_parameter->set_abstract(abstract); in CreateGraphWithExecOrder()
168 original_add->set_abstract(abstract); in CreateGraphWithExecOrder()
173 original_z_parameter->set_abstract(abstract); in CreateGraphWithExecOrder()
177 original_mul->set_abstract(abstract); in CreateGraphWithExecOrder()
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/format_type/
Dmerge_cast_to_op_test.cc74 g->parameters()[0]->set_abstract(x_abstract); in TEST_F()
75 g->get_return()->set_abstract(x_abstract); in TEST_F()
77 g_four2five->set_abstract(x_abstract); in TEST_F()
79 g_cast->set_abstract(x_abstract); in TEST_F()
136 g->parameters()[0]->set_abstract(x_abstract); in TEST_F()
137 g->get_return()->set_abstract(x_abstract); in TEST_F()
139 g_cast->set_abstract(x_abstract); in TEST_F()
141 g_five2four->set_abstract(x_abstract); in TEST_F()
Dcheck_consistency_test.cc50 g->parameters()[0]->set_abstract(x_abstract); in TEST_F()
52 g_cast->set_abstract(x_abstract); in TEST_F()
111 g->parameters()[0]->set_abstract(x_abstract); in TEST_F()
113 g_cast->set_abstract(x_abstract); in TEST_F()
/third_party/mindspore/tests/ut/cpp/session/
Dsession_basic_test.cc50 original_x_parameter->set_abstract(abstract); in TEST_F()
54 original_y_parameter->set_abstract(abstract); in TEST_F()
58 original_add->set_abstract(abstract); in TEST_F()
63 original_z_parameter->set_abstract(abstract); in TEST_F()
67 original_mul->set_abstract(abstract); in TEST_F()
Dkernel_graph_test.cc43 add_value->set_abstract(x_abstract); in TEST_F()
73 non_weight_parameter->set_abstract(x_abstract); in TEST_F()
87 weight_parameter_node->set_abstract(x_abstract); in TEST_F()
147 x_parameter->set_abstract(abstract); in TEST_F()
151 y_parameter->set_abstract(abstract); in TEST_F()
155 add->set_abstract(abstract); in TEST_F()
160 z_parameter->set_abstract(abstract); in TEST_F()
164 mul->set_abstract(abstract); in TEST_F()
/third_party/mindspore/tests/ut/cpp/parallel/
Dstep_auto_parallel_test.cc67 param1->set_abstract(abstract1); in Create_Node()
68 param2->set_abstract(abstract2); in Create_Node()
80 node->set_abstract(abstract3); in Create_Node()
107 paramX->set_abstract(abstractX); in Create_two_nodes()
108 paramY->set_abstract(abstractY); in Create_two_nodes()
109 paramW->set_abstract(abstractW); in Create_two_nodes()
121 MatMul_1_node->set_abstract(abstractZ); in Create_two_nodes()
133 MatMul_2_node->set_abstract(abstractOut); in Create_two_nodes()
Dstep_parallel_test.cc78 param1->set_abstract(abstract1); in Make_Node()
79 param2->set_abstract(abstract2); in Make_Node()
84 param2->set_abstract(abstract2); in Make_Node()
90 param1->set_abstract(abstract1); in Make_Node()
91 param2->set_abstract(abstract2); in Make_Node()
101 param1->set_abstract(abstract1); in Make_Node()
102 param2->set_abstract(abstract2); in Make_Node()
113 node->set_abstract(abstract3); in Make_Node()
137 param1->set_abstract(abstract_x); in Make_Manager()
138 param2->set_abstract(abstract_y); in Make_Manager()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/
Ddecrease_transfer_precision.cc123 … in_node->set_abstract(std::make_shared<abstract::AbstractTensor>(kFloat16, GetShape(in_node))); in Run()
158 cnode->set_abstract(std::make_shared<abstract::AbstractTensor>(kFloat16, GetShape(old_output))); in Process_Father()
193 node->set_abstract(std::make_shared<abstract::AbstractTensor>(kFloat16, GetShape(node))); in Process_Father()
215 tuple_output->set_abstract(std::make_shared<abstract::AbstractTuple>(abstract_list)); in Process_Father()
218 node->set_abstract(tuple_output->abstract()); in Process_Father()
254 node->set_abstract(old_abstract); in Process_Son()
269 cnode->set_abstract(old_input->abstract()); in Process_Son()
273 …old_input->set_abstract(std::make_shared<abstract::AbstractTensor>(kFloat16, GetShape(old_input))); in Process_Son()
Dsubstitute_dropout.cc52 uniform_real_input[1]->set_abstract(tensor->ToAbstract()); in PreProcess()
57 uniform_real_node->set_abstract(std::make_shared<abstract::AbstractTensor>(kFloat32, shape_i64)); in PreProcess()
73 new_dropout_node->set_abstract(node->abstract()); in PreProcess()
Drewrite_output_shape.cc40 mt_node->set_abstract(std::make_shared<abstract::AbstractTuple>(abstracts)); in Run()
60 node->set_abstract(std::make_shared<abstract::AbstractTuple>(node_abstracts)); in Process()
62 node->set_abstract(abstract); in Process()
Dupdate_state_formatter.cc65 idx->set_abstract(std::make_shared<abstract::AbstractScalar>(idx_val)); in ExtendInputsOfUpdateState()
69 tuple_getitem->set_abstract(node_abstract[i]); in ExtendInputsOfUpdateState()
97 new_node->set_abstract(node->abstract()); in Run()
120 mt_node->set_abstract(std::make_shared<abstract::AbstractTuple>(abs_list)); in Run()
125 new_node->set_abstract(node->abstract()); in Run()
235 new_node->set_abstract(kUMonad->ToAbstract()); in ProcessIndex()
Doptimize_assign.cc98 u->set_abstract(kUMonad->ToAbstract()); in KeepExecOrder()
101 update_state_node->set_abstract(getitem->abstract()); in KeepExecOrder()
107 load_node->set_abstract(assign_to_node->abstract()); in KeepExecOrder()
173 new_cnode->set_abstract(inputs.back()->abstract()); in ReplaceAssignByInplaceAssignInGraphkernel()
/third_party/mindspore/mindspore/core/load_mindir/
Danf_model_parser.cc271 node->set_abstract(tensor_abstract); in BuildParameterForFuncGraph()
282 node->set_abstract(tensor_abstract); in BuildParameterForFuncGraph()
318 node->set_abstract(tensor_abstract); in BuildInputForFuncGraph()
603 new_value_node->set_abstract(tensor_abstract); in ObtainValueNodeInTensorForm()
643 new_value_node->set_abstract(abs_type); in ObtainValueNodeInTypeForm()
651 new_value_node->set_abstract(kNone->ToAbstract()); in ObtainValueNodeInNoneForm()
663 new_value_node->set_abstract(monad_abs); in ObtainValueNodeInMonadForm()
669 new_value_node->set_abstract(monad_abs); in ObtainValueNodeInMonadForm()
716 new_value_node->set_abstract(res->ToAbstract()); in GetAttrValueForValueNode()
724 new_value_node->set_abstract(res->ToAbstract()); in GetAttrValueForValueNode()
[all …]
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Ditem_tuple_or_list_eliminate.h157 out->set_abstract((*tuple_)[id_]->ToAbstract()); in operator()
223 make_tuple->set_abstract(std::make_shared<abstract::AbstractTuple>(abs_list)); in operator()
253 val_node->set_abstract(val->ToAbstract()); in Visit()
263 val_node->set_abstract(val->ToAbstract()); in Visit()
384 new_node->set_abstract(node->abstract()); in operator()
406 item_node->set_abstract(abs_tuple->elements()[idx]); in operator()
408 item_node->set_abstract(abs); in operator()
410 depend_node->set_abstract(item_node->abstract()); in operator()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dgraph_transform.cc66 elem_node->set_abstract(elements[i]); in TransformTupleArgument()
95 new_node->set_abstract(cnode->abstract()); in TransformCallGraph()
118 new_node->set_abstract(cnode->abstract()); in TransformPartial()
140 new_node->set_abstract(cnode->abstract()); in TransformSwitchCall()
Dclean.cc138 idx_c->set_abstract(aptr); in ConvertGetAttrToTupleGetItem()
179 idx_c->set_abstract(aptr); in ConvertDictGetItemToTupleGetItem()
226 idx_c->set_abstract(aptr); in ConvertDictSetItemToTupleSetItem()
422 new_node->set_abstract(node->abstract()); in SimplifyDataStructures()
434 node->set_abstract(ret); in SimplifyDataStructures()
467 cons_node->set_abstract(aptr); in ConvertSparseGetAttrToTupleGetItem()
510 new_node->set_abstract(node->abstract()); in CleanAfterOptA()
522 node->set_abstract(ret); in CleanAfterOptA()
555 np->set_abstract(elem); in ExpandTuplesP()
598 c_node->input(scalar_index)->set_abstract(aptr); in ExpandTuplesC()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/mindir/
Ddropout_unify_mindir.cc139 dynamic_shape->set_abstract(dynamic_shape_abstract); in CreateDynamicShapeCNode()
176 dropout_gen_mask->set_abstract(gen_mask_abstract); in CreateDropoutGenMaskCNode()
249 dropout_do_mask1->set_abstract(do_mask_abstract1); in Process()
268 dropout_do_mask->set_abstract(do_mask_abstract); in Process()
311 dropout_do_mask->set_abstract(do_mask_abstract); in Process()
321 tuple_cnode->set_abstract(dropout_gen_mask->abstract()); in Process()
352 dropout_do_mask->set_abstract(do_mask_abstract); in Process()
387 mask_input->set_abstract(mask_abstract); in Process()
403 dropout_do_mask->set_abstract(do_mask_abstract); in Process()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/
Dconvert_const_input_to_tensor_input.cc51 tensor_input->set_abstract(tensor_ptr->ToAbstract()); in CreateTensorInput()
95 new_cnode->set_abstract(new_inputs[1]->abstract()); in ConstInputToTensorInput()
97 new_cnode->set_abstract(cnode->abstract()); in ConstInputToTensorInput()
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fission/
Dlars_v2_fission_test.cc38 g->get_return()->input(1)->set_abstract(x_abstract); in TEST_F()
40 p->set_abstract(x_abstract); in TEST_F()
/third_party/mindspore/mindspore/lite/test/ut/tools/converter/registry/parser/
Dmodel_parser_test.cc77 parameter->set_abstract(tensor_info->ToAbstract()); in BuildGraphInputs()
123 parameter->set_abstract(tensor_info->ToAbstract()); in BuildGraphNodes()
133 cnode->set_abstract(tensor_info->ToAbstract()); in BuildGraphNodes()
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/
Dlayer_norm_beta_gamma_backprop_fusion_test.cc83 cast0->set_abstract(x_abstract); in TEST_F()
84 cast1->set_abstract(x_abstract); in TEST_F()
93 layer->set_abstract(std::make_shared<abstract::AbstractTuple>(new_node_list)); in TEST_F()
152 layer->set_abstract(std::make_shared<abstract::AbstractTuple>(new_node_list)); in TEST_F()
211 layer->set_abstract(std::make_shared<abstract::AbstractTuple>(new_node_list)); in TEST_F()
260 layer->set_abstract(x_abstract); in TEST_F()
319 layer->set_abstract(std::make_shared<abstract::AbstractTuple>(new_node_list)); in TEST_F()
/third_party/mindspore/mindspore/lite/tools/converter/parser/onnx/
Donnx_model_parser.cc77 const_node->set_abstract(const_abstract); in CreateConstParamter()
143 sub_cnode->set_abstract(trip_cout_paramter->abstract()); in AddIterNumsUpdateEdge()
192 parameter_node->set_abstract(abstract_tensor); in BuildParameterNode()
218 cnode->set_abstract(abstract_tensor); in BuildOpOutputs()
251 get_item_cnode->set_abstract(get_item_abstract); in BuildOpOutputs()
257 cnode->set_abstract(new_abstract_list); in BuildOpOutputs()
311 parameter->set_abstract(abstract_tensor); in ConvertGraphInputs()
386 input_parameter->set_abstract(input_abstract); in BuildCondGraph()
404 less_cnode->set_abstract(less_abstract); in BuildCondGraph()
416 and_cnode->set_abstract(less_cnode->abstract()); in BuildCondGraph()
[all …]

123456789