/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/ |
D | lamb_next_mv_with_decay_rule_test.cc | 71 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 …]
|
D | lamb_next_mv_rule_test.cc | 70 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 …]
|
D | adam_apply_one_fusion_test.cc | 63 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 …]
|
D | adam_apply_one_with_decay_rule_test.cc | 48 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 …]
|
D | lamb_next_mv_with_decay_v1_rule_test.cc | 45 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()
|
D | softmax_grad_ext_fusion_test.cc | 47 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()
|
D | fused_batch_norm_fusion_test.cc | 48 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()
|
D | layer_norm_beta_gamma_backprop_fusion_test.cc | 110 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 …]
|
D | mul_addn_fusion_test.cc | 42 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()
|
D | clip_by_value_fusion_test.cc | 47 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()
|
D | lamb_next_right_rule_test.cc | 57 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()
|
D | reshape_transpose_fusion_test.cc | 57 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()
|
D | square_sum_fusion_test.cc | 47 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()
|
D | transpose_reshape_fusion_test.cc | 59 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/ |
D | constant_folding_fusion_test.cc | 377 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 …]
|
D | conv_biasadd_fusion_test.cc | 149 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()
|
D | conv_activation_fusion_test.cc | 140 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/ |
D | optimize_dependence_test.cc | 46 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()
|
D | allreduce_fusion_test.cc | 75 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/ |
D | getnext_tensor_move_elimination_test.cc | 46 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()
|
D | insert_tensor_move_for_hccl_op_test.cc | 72 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/ |
D | addn_fission_test.cc | 52 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()
|
D | concat_fission_test.cc | 52 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()
|
D | batch_norm_grad_infer_fission_test.cc | 49 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/ |
D | insert_cast_test.cc | 90 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()
|