From b1fb2360e39269bcc93cafcf00200988073ad825 Mon Sep 17 00:00:00 2001 From: "joanna.wozna.intel" Date: Wed, 9 Nov 2022 11:12:18 +0100 Subject: [PATCH] Fix U2++ perf (#47780) --- paddle/fluid/inference/api/paddle_pass_builder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/inference/api/paddle_pass_builder.cc b/paddle/fluid/inference/api/paddle_pass_builder.cc index be5c4d1d88..21fd3bc0cf 100755 --- a/paddle/fluid/inference/api/paddle_pass_builder.cc +++ b/paddle/fluid/inference/api/paddle_pass_builder.cc @@ -394,9 +394,9 @@ void CpuPassStrategy::EnableMkldnnInt8() { #ifdef PADDLE_WITH_MKLDNN if (!use_mkldnn_int8_) { passes_.clear(); + passes_.push_back("simplify_with_basic_ops_pass"); passes_.push_back("quant_dequant_mkldnn_pass"); passes_.push_back("mkldnn_placement_pass"); - passes_.push_back("simplify_with_basic_ops_pass"); passes_.push_back("constant_folding_pass"); passes_.push_back("squeeze2_transpose2_onednn_fuse_pass"); passes_.push_back("layer_norm_fuse_pass"); -- GitLab