From c5f47c2107143bc9da8295abb5e7203f74076aef Mon Sep 17 00:00:00 2001 From: Physher <50398879+Minghui-Intel@users.noreply.github.com> Date: Fri, 26 Jul 2019 10:28:05 +0800 Subject: [PATCH] fix mul_mkldnn_op build failure (#18816) --- paddle/fluid/operators/mkldnn/mul_mkldnn_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/mkldnn/mul_mkldnn_op.cc b/paddle/fluid/operators/mkldnn/mul_mkldnn_op.cc index 71b9cc19398..404f9f74d15 100644 --- a/paddle/fluid/operators/mkldnn/mul_mkldnn_op.cc +++ b/paddle/fluid/operators/mkldnn/mul_mkldnn_op.cc @@ -84,7 +84,7 @@ class MulPrimitiveFactory { if ((data->dims().size() == 4 && src_fmt != (dst_fmt = memory::format::nchw)) || (data->dims().size() == 5 && - dst_fmt != (dst_fmt = memory::format::ncdhw))) { + src_fmt != (dst_fmt = memory::format::ncdhw))) { auto dst_mdesc = CreateMemDescriptor(data, dst_fmt); x_tmp.mutable_data(ctx.GetPlace(), data->memory_size()); -- GitLab