Skip to content

Commit 996d12f

Browse files
author
Tomasz Patejko
committed
MKL optimized elementwise add backward: coding style fixes
1 parent 5a622c2 commit 996d12f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

paddle/fluid/operators/elementwise_add_op.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ REGISTER_OP_CPU_KERNEL(
2626
elementwise_add_grad,
2727
ops::ElementwiseAddGradKernel<paddle::platform::CPUDeviceContext, float>,
2828
ops::ElementwiseAddGradKernel<paddle::platform::CPUDeviceContext, double>);
29-
// ops::ElementwiseAddGradKernel<paddle::platform::CPUDeviceContext, int>,
30-
// ops::ElementwiseAddGradKernel<paddle::platform::CPUDeviceContext, int64_t>);
29+
// ops::ElementwiseAddGradKernel<paddle::platform::CPUDeviceContext, int>,
30+
// ops::ElementwiseAddGradKernel<paddle::platform::CPUDeviceContext, int64_t>);

paddle/fluid/operators/elementwise_add_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ElementwiseAddGradKernel : public framework::OpKernel<T> {
102102
if (platform::is_cpu_place(ctx.GetPlace()) && (x->dims() == y->dims())) {
103103
auto blas = math::GetBlas<DeviceContext, T>(ctx);
104104

105-
if (dx)
105+
if (dx)
106106
dx->mutable_data<T>(ctx.GetPlace());
107107
if (dy)
108108
dy->mutable_data<T>(ctx.GetPlace());

0 commit comments

Comments
 (0)