From 805945b746b88df2eb71c34f2076fa7b33bdb33d Mon Sep 17 00:00:00 2001 From: wangchaochaohu Date: Wed, 24 Feb 2021 20:25:17 +0800 Subject: [PATCH] Revert "fix windows for optimization of elementwise_add Op (#31068)" This reverts commit 364cfa268660d79bdbb7074342b423a9b82c2d2f. --- paddle/fluid/operators/elementwise/elementwise_add_op.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paddle/fluid/operators/elementwise/elementwise_add_op.h b/paddle/fluid/operators/elementwise/elementwise_add_op.h index 8c1279a5798..41e97a39466 100644 --- a/paddle/fluid/operators/elementwise/elementwise_add_op.h +++ b/paddle/fluid/operators/elementwise/elementwise_add_op.h @@ -315,9 +315,7 @@ class ElementwiseAddGradKernel : public ElemwiseGradKernel { // skip out auto *out = dout; -// TODO(@wangchaochaohu, zhouwei35): Fix conv_transpose2d API(dataformat NHWC) -// error in Windows -#if defined(PADDLE_WITH_CUDA) && defined(_LINUX) +#ifdef PADDLE_WITH_CUDA #ifdef __NVCC__ int axis = ctx.Attr("axis"); -- GitLab