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
ce
Wojciech Uss 7 years ago
parent a1d3db031b
commit 5083ec3a1b

@ -77,10 +77,6 @@ bool AnalysisPredictor::Init(
inference_program_ = program; inference_program_ = program;
} }
if (config_._use_mkldnn) {
executor_->EnableMKLDNN(*inference_program_);
}
executor_->Prepare(scope_.get(), *inference_program_, 0, executor_->Prepare(scope_.get(), *inference_program_, 0,
config_.use_feed_fetch_ops); config_.use_feed_fetch_ops);

Loading…
Cancel
Save