diff --git a/paddle/fluid/operators/elementwise/elementwise_add_op.h b/paddle/fluid/operators/elementwise/elementwise_add_op.h index 41e97a3946695ec9384d10293b1e54f7b2a5cfad..c46184f5badbc70b34389f10ff84f2358a4d855b 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(_WIN32) #ifdef __NVCC__ int axis = ctx.Attr("axis");