未验证 提交 a4b48f70 编写于 作者: T Tao Luo 提交者: GitHub

Merge pull request #13997 from wojtuss/wojtuss/do-not-enable-mkldnn-twice

do not enable MKL-DNN twice
...@@ -77,10 +77,6 @@ bool AnalysisPredictor::Init( ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册