diff --git a/paddle/fluid/inference/api/paddle_pass_builder.cc b/paddle/fluid/inference/api/paddle_pass_builder.cc index b1b101c6357a69e7330de9e3029d33972d271e13..0b7982950f43d314ddc105d48d62c5ad555b19b7 100644 --- a/paddle/fluid/inference/api/paddle_pass_builder.cc +++ b/paddle/fluid/inference/api/paddle_pass_builder.cc @@ -415,6 +415,8 @@ void CpuPassStrategy::EnableMkldnnInt8() { passes_.push_back("cpu_quantize_placement_pass"); passes_.push_back("cpu_quantize_pass"); passes_.push_back("cpu_quantize_squash_pass"); + passes_.push_back("int8_scale_calculation_mkldnn_pass"); + passes_.push_back("params_quantization_mkldnn_pass"); passes_.push_back("mkldnn_inplace_pass"); passes_.push_back("runtime_context_cache_pass"); }