Home
last modified time | relevance | path

Searched refs:new_graph (Results 1 – 25 of 67) sorted by relevance

123

/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/
Dlamb_next_mv_with_decay_rule_test.cc71 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
74 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
116 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
117 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
119 EXPECT_FALSE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
161 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
162 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
164 EXPECT_FALSE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
206 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
207 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
[all …]
Dlamb_next_mv_rule_test.cc70 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
73 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
114 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
116 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
157 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
159 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
200 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
202 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
243 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
245 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
[all …]
Dadam_apply_one_fusion_test.cc63 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
66 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
101 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
104 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
139 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
142 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
177 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
180 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
215 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
218 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
[all …]
Dadam_apply_one_with_decay_rule_test.cc48 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
51 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
69 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
72 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
90 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
93 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
111 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
114 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
132 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
135 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
[all …]
Dlamb_next_mv_with_decay_v1_rule_test.cc45 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
48 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
66 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
68 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
86 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
88 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
106 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
108 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
Dsoftmax_grad_ext_fusion_test.cc47 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
50 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
68 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
71 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
89 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
92 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
Dfused_batch_norm_fusion_test.cc48 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
51 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
71 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
74 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
94 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
97 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
Dlayer_norm_beta_gamma_backprop_fusion_test.cc110 FuncGraphPtr new_graph = optimizer->Optimize(g); in TEST_F() local
113 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
169 FuncGraphPtr new_graph = optimizer->Optimize(g); in TEST_F() local
171 EXPECT_TRUE(CheckEqualGraph(g, new_graph)); in TEST_F()
173 EXPECT_FALSE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
228 FuncGraphPtr new_graph = optimizer->Optimize(g); in TEST_F() local
230 EXPECT_TRUE(CheckEqualGraph(g, new_graph)); in TEST_F()
232 EXPECT_FALSE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
277 FuncGraphPtr new_graph = optimizer->Optimize(g); in TEST_F() local
279 EXPECT_TRUE(CheckEqualGraph(g, new_graph)); in TEST_F()
[all …]
Dmul_addn_fusion_test.cc42 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
45 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
60 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
62 EXPECT_TRUE(CheckEqualGraph(origin_fg, new_graph)); in TEST_F()
Dclip_by_value_fusion_test.cc47 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
50 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
68 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
71 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
Dlamb_next_right_rule_test.cc57 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
60 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
90 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
92 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
Dreshape_transpose_fusion_test.cc57 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
60 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
80 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
81 EXPECT_TRUE(CheckEqualGraph(kg, new_graph)); in TEST_F()
Dsquare_sum_fusion_test.cc47 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
50 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
67 FuncGraphPtr new_graph = optimizer->Optimize(fg); in TEST_F() local
70 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
Dtranspose_reshape_fusion_test.cc59 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
62 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
82 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
83 EXPECT_TRUE(CheckEqualGraph(kg, new_graph)); in TEST_F()
/third_party/mindspore/mindspore/lite/test/ut/tools/optimizer/fusion/
Dconstant_folding_fusion_test.cc377 FuncGraphPtr new_graph = optimizer->Optimize(func_graph); in TEST_F() local
378 ASSERT_NE(nullptr, new_graph); in TEST_F()
379 auto new_meta_graph = lite::Export(new_graph); in TEST_F()
390 FuncGraphPtr new_graph = optimizer->Optimize(func_graph); in TEST_F() local
391 ASSERT_NE(nullptr, new_graph); in TEST_F()
392 auto new_meta_graph = lite::Export(new_graph); in TEST_F()
403 FuncGraphPtr new_graph = optimizer->Optimize(func_graph); in TEST_F() local
404 ASSERT_NE(nullptr, new_graph); in TEST_F()
405 auto new_meta_graph = lite::Export(new_graph); in TEST_F()
416 FuncGraphPtr new_graph = optimizer->Optimize(func_graph); in TEST_F() local
[all …]
Dconv_biasadd_fusion_test.cc149 auto new_graph = anf_transform->Transform(func_graph); in TEST_F() local
150 ASSERT_NE(nullptr, new_graph); in TEST_F()
151 auto new_meta_graph = lite::Export(new_graph); in TEST_F()
160 auto new_graph = anf_transform->Transform(func_graph); in TEST_F() local
161 ASSERT_NE(nullptr, new_graph); in TEST_F()
162 auto new_meta_graph = lite::Export(new_graph); in TEST_F()
170 auto new_graph = anf_transform->Transform(func_graph); in TEST_F() local
171 ASSERT_NE(nullptr, new_graph); in TEST_F()
172 auto new_meta_graph = lite::Export(new_graph); in TEST_F()
Dconv_activation_fusion_test.cc140 auto new_graph = anf_transform->Transform(func_graph); in TEST_F() local
141 ASSERT_NE(nullptr, new_graph); in TEST_F()
142 auto new_meta_graph = lite::Export(new_graph); in TEST_F()
153 auto new_graph = anf_transform->Transform(func_graph); in TEST_F() local
154 ASSERT_NE(nullptr, new_graph); in TEST_F()
155 auto new_meta_graph = lite::Export(new_graph); in TEST_F()
166 auto new_graph = anf_transform->Transform(func_graph); in TEST_F() local
167 ASSERT_NE(nullptr, new_graph); in TEST_F()
168 auto new_meta_graph = lite::Export(new_graph); in TEST_F()
/third_party/mindspore/tests/ut/cpp/pre_activate/pass/
Doptimize_dependence_test.cc46 FuncGraphPtr new_graph = optimizer->Optimize(g); in TEST_F() local
49 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
66 FuncGraphPtr new_graph = optimizer->Optimize(g); in TEST_F() local
69 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
87 FuncGraphPtr new_graph = optimizer->Optimize(g); in TEST_F() local
90 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
108 FuncGraphPtr new_graph = optimizer->Optimize(g); in TEST_F() local
111 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
Dallreduce_fusion_test.cc75 FuncGraphPtr new_graph = optimizer->Optimize(func_graph); in TEST_F() local
76 EXPECT_NE(new_graph, nullptr); in TEST_F()
80 EXPECT_TRUE(CheckEqualGraph(new_graph, g_after)); in TEST_F()
116 FuncGraphPtr new_graph = optimizer->Optimize(func_graph); in TEST_F() local
117 EXPECT_NE(new_graph, nullptr); in TEST_F()
121 EXPECT_TRUE(CheckEqualGraph(new_graph, g_after)); in TEST_F()
167 FuncGraphPtr new_graph = optimizer->Optimize(func_graph); in TEST_F() local
168 EXPECT_NE(new_graph, nullptr); in TEST_F()
172 EXPECT_TRUE(CheckEqualGraph(new_graph, g_after)); in TEST_F()
214 FuncGraphPtr new_graph = optimizer->Optimize(func_graph); in TEST_F() local
[all …]
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/enhancer/
Dgetnext_tensor_move_elimination_test.cc46 auto new_graph = optimizer->Optimize(g_before); in TEST_F() local
49 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
61 auto new_graph = optimizer->Optimize(g_before); in TEST_F() local
64 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
76 auto new_graph = optimizer->Optimize(g_before); in TEST_F() local
79 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
91 auto new_graph = optimizer->Optimize(g_before); in TEST_F() local
94 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
Dinsert_tensor_move_for_hccl_op_test.cc72 auto new_graph = optimizer->Optimize(kg); in TEST_F() local
74 EXPECT_TRUE(CheckEqualGraph(origin_graph, new_graph)); in TEST_F()
97 auto new_graph = optimizer->Optimize(kg); in TEST_F() local
100 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
119 auto new_graph = optimizer->Optimize(kg); in TEST_F() local
122 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
146 auto new_graph = optimizer->Optimize(kg); in TEST_F() local
149 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
173 auto new_graph = optimizer->Optimize(kg); in TEST_F() local
177 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fission/
Daddn_fission_test.cc52 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
57 EXPECT_TRUE(CheckEqualGraph(kg_after, new_graph)); in TEST_F()
77 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
82 EXPECT_TRUE(CheckEqualGraph(kg_after, new_graph)); in TEST_F()
102 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
107 EXPECT_TRUE(CheckEqualGraph(kg_after, new_graph)); in TEST_F()
127 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
132 EXPECT_TRUE(CheckEqualGraph(kg_after, new_graph)); in TEST_F()
152 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
157 EXPECT_TRUE(CheckEqualGraph(kg_after, new_graph)); in TEST_F()
Dconcat_fission_test.cc52 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
57 EXPECT_TRUE(CheckEqualGraph(kg_after, new_graph)); in TEST_F()
77 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
82 EXPECT_TRUE(CheckEqualGraph(kg_after, new_graph)); in TEST_F()
102 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
107 EXPECT_TRUE(CheckEqualGraph(kg_after, new_graph)); in TEST_F()
127 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
132 EXPECT_TRUE(CheckEqualGraph(kg_after, new_graph)); in TEST_F()
152 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
157 EXPECT_TRUE(CheckEqualGraph(kg_after, new_graph)); in TEST_F()
Dbatch_norm_grad_infer_fission_test.cc49 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
52 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
71 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
72 EXPECT_TRUE(CheckEqualGraph(kg, new_graph)); in TEST_F()
91 FuncGraphPtr new_graph = optimizer->Optimize(kg); in TEST_F() local
92 EXPECT_TRUE(CheckEqualGraph(kg, new_graph)); in TEST_F()
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/format_type/
Dinsert_cast_test.cc90 FuncGraphPtr new_graph = optimizer->Optimize(func_graph); in TEST_F() local
91 EXPECT_NE(new_graph, nullptr); in TEST_F()
95 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()
145 FuncGraphPtr new_graph = optimizer->Optimize(func_graph); in TEST_F() local
146 EXPECT_NE(new_graph, nullptr); in TEST_F()
150 EXPECT_TRUE(CheckEqualGraph(g_after, new_graph)); in TEST_F()

123