diff --git a/paddle/fluid/operators/elementwise/elementwise_add_op.h b/paddle/fluid/operators/elementwise/elementwise_add_op.h index 41e97a3946695..8c1279a579895 100644 --- a/paddle/fluid/operators/elementwise/elementwise_add_op.h +++ b/paddle/fluid/operators/elementwise/elementwise_add_op.h @@ -315,7 +315,9 @@ class ElementwiseAddGradKernel : public ElemwiseGradKernel { // skip out auto *out = dout; -#ifdef PADDLE_WITH_CUDA +// TODO(@wangchaochaohu, zhouwei35): Fix conv_transpose2d API(dataformat NHWC) +// error in Windows +#if defined(PADDLE_WITH_CUDA) && defined(_LINUX) #ifdef __NVCC__ int axis = ctx.Attr("axis");