From f114c3f8cac9a807f57669d7f3994921424b3475 Mon Sep 17 00:00:00 2001 From: wangchaochaohu Date: Thu, 25 Feb 2021 11:50:20 +0800 Subject: [PATCH] fix the branch of code choose (#31200) --- paddle/fluid/operators/elementwise/elementwise_add_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/elementwise/elementwise_add_op.h b/paddle/fluid/operators/elementwise/elementwise_add_op.h index 8c1279a579..c46184f5ba 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"); -- GitLab