Disable memory opt pass when DNNL is on (#21826)

* Disable memory opt pass when DNNL is on

* Refine comment above mem optimization pass enablement

test=develop
1.6.2
Michał Gallus 5 years ago committed by Tao Luo
parent 9bb1e3ea16
commit 253e664275

@ -324,8 +324,8 @@ void AnalysisConfig::Update() {
}
#ifdef PADDLE_WITH_MKLDNN
// Do not optimize before quantization
if (enable_memory_optim_ && !use_mkldnn_quantizer_) {
// Do not optimize when mkldnn is on
if (enable_memory_optim_ && !use_mkldnn_) {
#else
if (enable_memory_optim_) {
#endif

Loading…
Cancel
Save