/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ |
D | ascend_backend_optimization.cc | 149 ir_fusion_pm->AddPass(std::make_shared<LambUpdateWithLRRuleFusion>()); in AddAscendIRFusionRulesPass() 150 ir_fusion_pm->AddPass(std::make_shared<LambNextMVWithDecayRuleCond1>()); in AddAscendIRFusionRulesPass() 151 ir_fusion_pm->AddPass(std::make_shared<LambNextMVWithDecayRuleCond2>()); in AddAscendIRFusionRulesPass() 152 ir_fusion_pm->AddPass(std::make_shared<LambNextMVWithDecayRuleCond3>()); in AddAscendIRFusionRulesPass() 153 ir_fusion_pm->AddPass(std::make_shared<LambNextMVWithDecayRuleCond4>()); in AddAscendIRFusionRulesPass() 154 ir_fusion_pm->AddPass(std::make_shared<LambNextMVRuleCond1>()); in AddAscendIRFusionRulesPass() 155 ir_fusion_pm->AddPass(std::make_shared<LambNextMVRuleCond2>()); in AddAscendIRFusionRulesPass() 156 ir_fusion_pm->AddPass(std::make_shared<LambNextMVRuleCond3>()); in AddAscendIRFusionRulesPass() 157 ir_fusion_pm->AddPass(std::make_shared<LambNextMVRuleCond4>()); in AddAscendIRFusionRulesPass() 158 ir_fusion_pm->AddPass(std::make_shared<LambNextRightRule>()); in AddAscendIRFusionRulesPass() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/ |
D | graph_kernel_optimization.cc | 66 pm->AddPass(std::make_shared<CommonSubexpressionElimination>("cse1"), OptLevel_1); in PreProcess() 69 pm->AddPass(std::make_shared<SaveOutputShape>(), OptLevel_1); in PreProcess() 72 pm->AddPass(std::make_shared<SplitAssign>(), OptLevel_1, is_gpu); in PreProcess() 75 pm->AddPass(std::make_shared<SpreadUpdateState>(), OptLevel_1); in PreProcess() 77 pm->AddPass(std::make_shared<CommonSubexpressionElimination>("cse2"), OptLevel_1); in PreProcess() 85 pm->AddPass(std::make_shared<GraphKernelComplexExpander>(), OptLevel_1, is_gpu); in Cluster() 88 pm->AddPass(std::make_shared<GraphKernelExpander>(), OptLevel_1); in Cluster() 91 pm->AddPass(std::make_shared<GraphKernelCluster>(), OptLevel_1); in Cluster() 94 pm->AddPass(std::make_shared<EliminateRedundantOutput>(), OptLevel_1); in Cluster() 102 pm->AddPass(std::make_shared<CastMatmulFusion>(), OptLevel_2, is_ascend); in HighLevelOpt1() [all …]
|
/third_party/mindspore/mindspore/lite/tools/converter/ |
D | graphdef_transform.cc | 62 unused_op_remove_optimizer.AddPass(new DropoutNodeRemovePass()); in Transform() 64 unused_op_remove_optimizer.AddPass(new IsolatedNodeRemovePass()); in Transform() 65 unused_op_remove_optimizer.AddPass(new SubgraphNodePass(old_nodes)); in Transform() 79 format_trans_optimizer.AddPass(new (std::nothrow) IsolatedNodeRemovePass()); in Transform() 80 format_trans_optimizer.AddPass(new (std::nothrow) SubgraphNodePass(old_nodes)); in Transform() 94 replace_optimizer.AddPass(new (std::nothrow) InferShapePass(ctx.fmk)); in Transform() 95 replace_optimizer.AddPass(new (std::nothrow) BatchNormConvertScalePass(ctx.fmk)); in Transform() 96 replace_optimizer.AddPass(new (std::nothrow) IsolatedNodeRemovePass()); in Transform() 97 replace_optimizer.AddPass(new SubgraphNodePass(old_nodes)); in Transform() 110 fusion_optimizer.AddPass(new (std::nothrow) MulAddFusionPass()); in Transform() [all …]
|
D | anf_transform.cc | 172 fusion_pm->AddPass(std::make_shared<opt::SqueezeFusion>()); in RunFusionPass() 173 fusion_pm->AddPass(std::make_shared<opt::TransposeFusion>()); in RunFusionPass() 174 fusion_pm->AddPass(std::make_shared<opt::ReshapeReshapeFusion>()); in RunFusionPass() 175 fusion_pm->AddPass(std::make_shared<opt::ConvBiasaddFusion>()); in RunFusionPass() 176 fusion_pm->AddPass(std::make_shared<opt::ConvBatchNormFusion>(config->fmk)); in RunFusionPass() 177 fusion_pm->AddPass(std::make_shared<opt::ConvScaleFusion>(config->fmk)); in RunFusionPass() 178 fusion_pm->AddPass(std::make_shared<opt::TfNormFusion>()); in RunFusionPass() 179 fusion_pm->AddPass(std::make_shared<opt::OnnxLayerNormFusion>()); in RunFusionPass() 180 fusion_pm->AddPass(std::make_shared<opt::BatchMatMulFusion>()); in RunFusionPass() 181 fusion_pm->AddPass(std::make_shared<opt::SigmoidMulFusion>()); in RunFusionPass() [all …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/test/opt/ |
D | pass_manager_test.cpp | 44 manager.AddPass<opt::StripDebugInfoPass>(); in TEST() 48 manager.AddPass(MakeUnique<opt::NullPass>()); in TEST() 53 manager.AddPass<opt::StripDebugInfoPass>(); in TEST() 59 manager.AddPass<NullPassWithArgs>(1u); in TEST() 60 manager.AddPass<NullPassWithArgs>("null pass args"); in TEST() 61 manager.AddPass<NullPassWithArgs>(std::initializer_list<int>{1, 2}); in TEST() 62 manager.AddPass<NullPassWithArgs>(std::initializer_list<int>{1, 2}, 3); in TEST() 117 AddPass<AppendOpNopPass>(); in TEST_F() 118 AddPass<AppendOpNopPass>(); in TEST_F() 122 AddPass<AppendOpNopPass>(); in TEST_F() [all …]
|
/third_party/spirv-tools/test/opt/ |
D | pass_manager_test.cpp | 48 manager.AddPass<StripDebugInfoPass>(); in TEST() 52 manager.AddPass(MakeUnique<NullPass>()); in TEST() 57 manager.AddPass<StripDebugInfoPass>(); in TEST() 63 manager.AddPass<NullPassWithArgs>(1u); in TEST() 64 manager.AddPass<NullPassWithArgs>("null pass args"); in TEST() 65 manager.AddPass<NullPassWithArgs>(std::initializer_list<int>{1, 2}); in TEST() 66 manager.AddPass<NullPassWithArgs>(std::initializer_list<int>{1, 2}, 3); in TEST() 121 AddPass<AppendOpNopPass>(); in TEST_F() 122 AddPass<AppendOpNopPass>(); in TEST_F() 126 AddPass<AppendOpNopPass>(); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
D | pass_manager_test.cpp | 48 manager.AddPass<StripDebugInfoPass>(); in TEST() 52 manager.AddPass(MakeUnique<NullPass>()); in TEST() 57 manager.AddPass<StripDebugInfoPass>(); in TEST() 63 manager.AddPass<NullPassWithArgs>(1u); in TEST() 64 manager.AddPass<NullPassWithArgs>("null pass args"); in TEST() 65 manager.AddPass<NullPassWithArgs>(std::initializer_list<int>{1, 2}); in TEST() 66 manager.AddPass<NullPassWithArgs>(std::initializer_list<int>{1, 2}, 3); in TEST() 121 AddPass<AppendOpNopPass>(); in TEST_F() 122 AddPass<AppendOpNopPass>(); in TEST_F() 126 AddPass<AppendOpNopPass>(); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
D | pass_manager_test.cpp | 48 manager.AddPass<StripDebugInfoPass>(); in TEST() 52 manager.AddPass(MakeUnique<NullPass>()); in TEST() 57 manager.AddPass<StripDebugInfoPass>(); in TEST() 63 manager.AddPass<NullPassWithArgs>(1u); in TEST() 64 manager.AddPass<NullPassWithArgs>("null pass args"); in TEST() 65 manager.AddPass<NullPassWithArgs>(std::initializer_list<int>{1, 2}); in TEST() 66 manager.AddPass<NullPassWithArgs>(std::initializer_list<int>{1, 2}, 3); in TEST() 121 AddPass<AppendOpNopPass>(); in TEST_F() 122 AddPass<AppendOpNopPass>(); in TEST_F() 126 AddPass<AppendOpNopPass>(); in TEST_F() [all …]
|
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/ |
D | gpu_device_context.cc | 244 pm->AddPass(std::make_shared<opt::BatchNormReluFusion>()); in OptimizeGraphWithDeviceInfo() 245 pm->AddPass(std::make_shared<opt::BatchNormReluGradFusion>()); in OptimizeGraphWithDeviceInfo() 246 pm->AddPass(std::make_shared<opt::BatchNormAddReluFusion>()); in OptimizeGraphWithDeviceInfo() 247 pm->AddPass(std::make_shared<opt::PostBatchNormAddReluFusion>()); in OptimizeGraphWithDeviceInfo() 248 pm->AddPass(std::make_shared<opt::BatchNormAddReluGradFusion>()); in OptimizeGraphWithDeviceInfo() 249 pm->AddPass(std::make_shared<opt::InsertFormatTransformOp>()); in OptimizeGraphWithDeviceInfo() 250 pm->AddPass(std::make_shared<opt::RemoveFormatTransformPair>()); in OptimizeGraphWithDeviceInfo() 251 pm->AddPass(std::make_shared<opt::RemoveRedundantFormatTransform>()); in OptimizeGraphWithDeviceInfo() 254 pm->AddPass(std::make_shared<opt::OptimizeUpdateState>()); in OptimizeGraphWithDeviceInfo() 255 pm->AddPass(std::make_shared<opt::CudnnInplaceAggregate>()); in OptimizeGraphWithDeviceInfo() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/ |
D | common_backend_optimization.cc | 49 common_pm->AddPass(std::make_shared<ConvertConstInputToAttr>()); in BackendCommonOptimization() 50 common_pm->AddPass(std::make_shared<ConvertAttrToUnifyMindIR>()); in BackendCommonOptimization() 51 common_pm->AddPass(std::make_shared<ConstToAttrStridedSliceGradPass>()); in BackendCommonOptimization() 52 common_pm->AddPass(std::make_shared<ConvertConstInputToTensorInput>()); in BackendCommonOptimization() 53 common_pm->AddPass(std::make_shared<ConvertTupleOutputToMaketuple>()); in BackendCommonOptimization() 54 common_pm->AddPass(std::make_shared<ConvertConstScalarToTensor>()); in BackendCommonOptimization() 55 common_pm->AddPass(std::make_shared<ConvertTupleInputToDynamicInput>()); in BackendCommonOptimization() 56 common_pm->AddPass(std::make_shared<AddTrainingAttr>()); in BackendCommonOptimization() 73 pm->AddPass(std::make_shared<OptimizeUpdateState>()); in CommonFinalOptimization() 104 pm->AddPass(std::make_shared<ConvTransposeToConvBackpropInputPass>()); in CommonUnifyMindIROptimization()
|
/third_party/mindspore/mindspore/ccsrc/backend/session/ |
D | gpu_session.cc | 158 pm->AddPass(std::make_shared<opt::GraphConverter>()); in Optimize() 160 pm->AddPass(std::make_shared<opt::MatMulBiasAddFusion>()); in Optimize() 161 pm->AddPass(std::make_shared<opt::AdamWeightDecayFusion>()); in Optimize() 162 pm->AddPass(std::make_shared<opt::AdamFusion>()); in Optimize() 163 pm->AddPass(std::make_shared<opt::ApplyMomentumWeightDecayScaleFusion>()); in Optimize() 164 pm->AddPass(std::make_shared<opt::ApplyMomentumScaleFusion>()); in Optimize() 165 pm->AddPass(std::make_shared<opt::ApplyMomentumWeightDecayFusion>()); in Optimize() 167 pm->AddPass(std::make_shared<opt::CastAllFusion>("cast_all")); in Optimize() 169 pm->AddPass(std::make_shared<opt::CombineMomentumFusion>("combine_momentum")); in Optimize() 170 pm->AddPass(std::make_shared<opt::ReplaceMomentumCastFusion>()); in Optimize() [all …]
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fission/ |
D | batch_norm_grad_infer_fission_test.cc | 46 pm->AddPass(std::make_shared<opt::BatchNormGradUnifyMindIR>()); in TEST_F() 47 pm->AddPass(std::make_shared<opt::BatchNormGradInferFission>()); in TEST_F() 68 pm->AddPass(std::make_shared<opt::BatchNormGradUnifyMindIR>()); in TEST_F() 69 pm->AddPass(std::make_shared<opt::BatchNormGradInferFission>()); in TEST_F() 88 pm->AddPass(std::make_shared<opt::BatchNormGradUnifyMindIR>()); in TEST_F() 89 pm->AddPass(std::make_shared<opt::BatchNormGradInferFission>()); in TEST_F()
|
D | addn_fission_test.cc | 50 pm->AddPass(addn_fission); in TEST_F() 75 pm->AddPass(addn_fission); in TEST_F() 100 pm->AddPass(addn_fission); in TEST_F() 125 pm->AddPass(addn_fission); in TEST_F() 150 pm->AddPass(addn_fission); in TEST_F()
|
D | concat_fission_test.cc | 50 pm->AddPass(concat_fission); in TEST_F() 75 pm->AddPass(concat_fission); in TEST_F() 100 pm->AddPass(concat_fission); in TEST_F() 125 pm->AddPass(concat_fission); in TEST_F() 150 pm->AddPass(concat_fission); in TEST_F()
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/ |
D | lamb_next_mv_rule_test.cc | 68 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond4>()); in TEST_F() 112 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond4>()); in TEST_F() 155 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond4>()); in TEST_F() 198 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond4>()); in TEST_F() 241 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond4>()); in TEST_F() 260 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond1>()); in TEST_F() 281 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond1>()); in TEST_F() 300 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond2>()); in TEST_F() 321 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond2>()); in TEST_F() 340 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond3>()); in TEST_F() [all …]
|
D | adam_apply_one_fusion_test.cc | 61 pm->AddPass(std::make_shared<opt::AdamApplyOneFusion>()); in TEST_F() 99 pm->AddPass(std::make_shared<opt::AdamApplyOneCond1Fusion>()); in TEST_F() 137 pm->AddPass(std::make_shared<opt::AdamApplyOneCond2Fusion>()); in TEST_F() 175 pm->AddPass(std::make_shared<opt::AdamApplyOneCond3Fusion>()); in TEST_F() 213 pm->AddPass(std::make_shared<opt::AdamApplyOneCond4Fusion>()); in TEST_F() 233 pm->AddPass(std::make_shared<opt::AdamApplyOneAssignFusion>()); in TEST_F() 253 pm->AddPass(std::make_shared<opt::AdamApplyOneAssignCond1Fusion>()); in TEST_F() 273 pm->AddPass(std::make_shared<opt::AdamApplyOneAssignCond2Fusion>()); in TEST_F() 293 pm->AddPass(std::make_shared<opt::AdamApplyOneAssignCond3Fusion>()); in TEST_F() 313 pm->AddPass(std::make_shared<opt::AdamApplyOneAssignCond4Fusion>()); in TEST_F()
|
D | adam_apply_one_with_decay_rule_test.cc | 46 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayRuleCond1>()); in TEST_F() 67 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayRuleCond2>()); in TEST_F() 88 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayRuleCond3>()); in TEST_F() 109 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayRuleCond4>()); in TEST_F() 130 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayRuleCond5>()); in TEST_F() 151 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayAssignRuleCond1>()); in TEST_F() 172 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayAssignRuleCond2>()); in TEST_F() 193 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayAssignRuleCond3>()); in TEST_F() 214 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayAssignRuleCond4>()); in TEST_F() 235 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayAssignRuleCond5>()); in TEST_F()
|
D | lamb_next_mv_with_decay_rule_test.cc | 69 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond4>()); in TEST_F() 114 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond4>()); in TEST_F() 159 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond4>()); in TEST_F() 204 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond4>()); in TEST_F() 249 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond4>()); in TEST_F() 269 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond1>()); in TEST_F() 290 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond1>()); in TEST_F() 310 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond2>()); in TEST_F() 331 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond2>()); in TEST_F() 351 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond3>()); in TEST_F() [all …]
|
D | lamb_next_mv_with_decay_v1_rule_test.cc | 43 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayV1Rule>()); in TEST_F() 64 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayV1Rule>()); in TEST_F() 84 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayV1Rule>()); in TEST_F() 104 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayV1Rule>()); in TEST_F()
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/opt/ |
D | pass_manager.h | 46 void AddPass(std::unique_ptr<Pass> pass); 51 void AddPass(Args&&... args); 75 inline void PassManager::AddPass(std::unique_ptr<Pass> pass) { in AddPass() function 80 inline void PassManager::AddPass(Args&&... args) { in AddPass() function
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | pass_manager.h | 55 void AddPass(std::unique_ptr<Pass> pass); 60 void AddPass(Args&&... args); 132 inline void PassManager::AddPass(std::unique_ptr<Pass> pass) { in AddPass() function 137 inline void PassManager::AddPass(Args&&... args) { in AddPass() function
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | pass_manager.h | 55 void AddPass(std::unique_ptr<Pass> pass); 60 void AddPass(Args&&... args); 132 inline void PassManager::AddPass(std::unique_ptr<Pass> pass) { in AddPass() function 137 inline void PassManager::AddPass(Args&&... args) { in AddPass() function
|
/third_party/spirv-tools/source/opt/ |
D | pass_manager.h | 55 void AddPass(std::unique_ptr<Pass> pass); 60 void AddPass(Args&&... args); 132 inline void PassManager::AddPass(std::unique_ptr<Pass> pass) { in AddPass() function 137 inline void PassManager::AddPass(Args&&... args) { in AddPass() function
|
/third_party/mindspore/tests/ut/cpp/pre_activate/pass/ |
D | optimize_dependence_test.cc | 44 pm->AddPass(std::make_shared<opt::OptimizeDependence>()); in TEST_F() 64 pm->AddPass(std::make_shared<opt::OptimizeDependence>()); in TEST_F() 85 pm->AddPass(std::make_shared<opt::OptimizeDependence>()); in TEST_F() 106 pm->AddPass(std::make_shared<opt::OptimizeDependence>()); in TEST_F()
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/enhancer/ |
D | getnext_tensor_move_elimination_test.cc | 44 pm->AddPass(pass); in TEST_F() 59 pm->AddPass(pass); in TEST_F() 74 pm->AddPass(pass); in TEST_F() 89 pm->AddPass(pass); in TEST_F()
|