Skip to content

Commit

Permalink
fix windows for optimization of elementwise_add Op (#31068)
Browse files Browse the repository at this point in the history
* fix windows for optimization of elementwise_add Op
  • Loading branch information
wangchaochaohu authored Feb 23, 2021
1 parent 781df30 commit 364cfa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion paddle/fluid/operators/elementwise/elementwise_add_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ class ElementwiseAddGradKernel : public ElemwiseGradKernel<T> {
// 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<int>("axis");
Expand Down

0 comments on commit 364cfa2

Please sign in to comment.