Skip to content

Commit

Permalink
fix for mkldnn (#48852)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiweibo authored Dec 11, 2022
1 parent 6e356c6 commit 96e58f8
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 96e58f8

Please sign in to comment.