Skip to content

Commit feacd8a

Browse files
fix the branch of code choose (#31200)
1 parent 78b73c8 commit feacd8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/elementwise/elementwise_add_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class ElementwiseAddGradKernel : public ElemwiseGradKernel<T> {
317317

318318
// TODO(@wangchaochaohu, zhouwei35): Fix conv_transpose2d API(dataformat NHWC)
319319
// error in Windows
320-
#if defined(PADDLE_WITH_CUDA) && defined(_LINUX)
320+
#if defined(PADDLE_WITH_CUDA) && !defined(_WIN32)
321321
#ifdef __NVCC__
322322

323323
int axis = ctx.Attr<int>("axis");

0 commit comments

Comments
 (0)