From 996d12f16d7ab3cf7758b306f2855e0cc211a2df Mon Sep 17 00:00:00 2001 From: Tomasz Patejko Date: Mon, 21 May 2018 12:55:53 +0200 Subject: [PATCH] MKL optimized elementwise add backward: coding style fixes --- paddle/fluid/operators/elementwise_add_op.cc | 4 ++-- paddle/fluid/operators/elementwise_add_op.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/operators/elementwise_add_op.cc b/paddle/fluid/operators/elementwise_add_op.cc index c1ddc1824b..7824dea5d7 100644 --- a/paddle/fluid/operators/elementwise_add_op.cc +++ b/paddle/fluid/operators/elementwise_add_op.cc @@ -26,5 +26,5 @@ REGISTER_OP_CPU_KERNEL( elementwise_add_grad, ops::ElementwiseAddGradKernel, ops::ElementwiseAddGradKernel); -// ops::ElementwiseAddGradKernel, -// ops::ElementwiseAddGradKernel); +// ops::ElementwiseAddGradKernel, +// ops::ElementwiseAddGradKernel); diff --git a/paddle/fluid/operators/elementwise_add_op.h b/paddle/fluid/operators/elementwise_add_op.h index 5984f4aef1..0bf9600848 100644 --- a/paddle/fluid/operators/elementwise_add_op.h +++ b/paddle/fluid/operators/elementwise_add_op.h @@ -102,7 +102,7 @@ class ElementwiseAddGradKernel : public framework::OpKernel { if (platform::is_cpu_place(ctx.GetPlace()) && (x->dims() == y->dims())) { auto blas = math::GetBlas(ctx); - if (dx) + if (dx) dx->mutable_data(ctx.GetPlace()); if (dy) dy->mutable_data(ctx.GetPlace()); -- GitLab