From 9dac1e7101579da921a619df13638ae62c2d809d Mon Sep 17 00:00:00 2001 From: gem5 <117625383+linsheng011@users.noreply.github.com> Date: Thu, 22 Dec 2022 10:15:06 +0800 Subject: [PATCH] Enable identity_scale_op_clean_pass by default (#49227) --- paddle/fluid/inference/api/paddle_pass_builder.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/inference/api/paddle_pass_builder.cc b/paddle/fluid/inference/api/paddle_pass_builder.cc index fe5555d5cb..46eca6df55 100644 --- a/paddle/fluid/inference/api/paddle_pass_builder.cc +++ b/paddle/fluid/inference/api/paddle_pass_builder.cc @@ -162,6 +162,7 @@ const std::vector kLiteSubgraphPasses({ // support fp16/bf16 precision, temporarily use low precision pass to prevent // running errors. After fusion operator supports low precision, delete this. const std::vector kGpuLowerPrecisionPasses{ + "identity_scale_op_clean_pass", "simplify_with_basic_ops_pass", "delete_quant_dequant_linear_op_pass", "delete_weight_dequant_linear_op_pass", @@ -208,8 +209,8 @@ const std::vector kCINNCompilerPasses{ GpuPassStrategy::GpuPassStrategy() : PassStrategy({}) { passes_.assign({ - // "identity_scale_op_clean_pass", // - "is_test_pass", // + "identity_scale_op_clean_pass", // + "is_test_pass", // "simplify_with_basic_ops_pass", // "delete_quant_dequant_linear_op_pass", // "delete_weight_dequant_linear_op_pass", // -- GitLab