From 5083ec3a1b7d72e7bf3835e62da3b4e114b5a6a0 Mon Sep 17 00:00:00 2001 From: Wojciech Uss Date: Fri, 19 Oct 2018 08:41:45 +0200 Subject: [PATCH] do not enable MKL-DNN twice After the MKL-DNN placement pass there is no need to enable MKL-DNN in operators via executor test=develop --- paddle/fluid/inference/api/analysis_predictor.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/paddle/fluid/inference/api/analysis_predictor.cc b/paddle/fluid/inference/api/analysis_predictor.cc index f1a4a4df506..eec66576716 100644 --- a/paddle/fluid/inference/api/analysis_predictor.cc +++ b/paddle/fluid/inference/api/analysis_predictor.cc @@ -77,10 +77,6 @@ bool AnalysisPredictor::Init( inference_program_ = program; } - if (config_._use_mkldnn) { - executor_->EnableMKLDNN(*inference_program_); - } - executor_->Prepare(scope_.get(), *inference_program_, 0, config_.use_feed_fetch_ops); -- GitLab