提交 253e6642 编写于 作者: M Michał Gallus 提交者: Tao Luo

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
上级 9bb1e3ea
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册