diff --git a/paddle/fluid/operators/elementwise/elementwise_add_op.h b/paddle/fluid/operators/elementwise/elementwise_add_op.h index 8c1279a5798959dfd51ccbc5f4e6dab569c232f9..c46184f5badbc70b34389f10ff84f2358a4d855b 100644 --- a/paddle/fluid/operators/elementwise/elementwise_add_op.h +++ b/paddle/fluid/operators/elementwise/elementwise_add_op.h @@ -317,7 +317,7 @@ class ElementwiseAddGradKernel : public ElemwiseGradKernel { // TODO(@wangchaochaohu, zhouwei35): Fix conv_transpose2d API(dataformat NHWC) // error in Windows -#if defined(PADDLE_WITH_CUDA) && defined(_LINUX) +#if defined(PADDLE_WITH_CUDA) && !defined(_WIN32) #ifdef __NVCC__ int axis = ctx.Attr("axis");