diff --git a/paddle/fluid/operators/elementwise_add_op.cc b/paddle/fluid/operators/elementwise_add_op.cc index c1ddc1824bb0531a7e628d858bd2d3b0e4718877..7824dea5d7309ece7733cc7d3d772fc1d27a9bd9 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 5984f4aef1d92504eb369020fb4503b1a04cd9f0..0bf9600848ac5ed374ac60fe998787cb7fe488c3 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());