From 256103a5d06189a5d75a36d1226e885e5b04c04e Mon Sep 17 00:00:00 2001 From: wangchaochaohu Date: Thu, 25 Feb 2021 17:44:50 +0800 Subject: [PATCH] [cherry pick]Fix windows error (#31207) cherry-pick #31068 --- paddle/fluid/operators/elementwise/elementwise_add_op.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/operators/elementwise/elementwise_add_op.h b/paddle/fluid/operators/elementwise/elementwise_add_op.h index 41e97a39466..c46184f5bad 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"); -- GitLab