Skip to content

Commit

Permalink
fix for mkldnn (PaddlePaddle#48852)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiweibo authored Dec 11, 2022
1 parent 96be852 commit b4ea24d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions paddle/fluid/inference/api/analysis_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -948,12 +948,7 @@ void AnalysisConfig::Update() {
#endif
}

#ifdef PADDLE_WITH_MKLDNN
// Do not optimize when mkldnn is on
if (enable_memory_optim_ && !use_mkldnn_) {
#else
if (enable_memory_optim_) {
#endif
pass_builder()->AppendAnalysisPass("memory_optimize_pass");
}

Expand Down

0 comments on commit b4ea24d

Please sign in to comment.