未验证 提交 f114c3f8 编写于 作者: W wangchaochaohu 提交者: GitHub

fix the branch of code choose (#31200)

上级 d1160248
...@@ -317,7 +317,7 @@ class ElementwiseAddGradKernel : public ElemwiseGradKernel<T> { ...@@ -317,7 +317,7 @@ class ElementwiseAddGradKernel : public ElemwiseGradKernel<T> {
// TODO(@wangchaochaohu, zhouwei35): Fix conv_transpose2d API(dataformat NHWC) // TODO(@wangchaochaohu, zhouwei35): Fix conv_transpose2d API(dataformat NHWC)
// error in Windows // error in Windows
#if defined(PADDLE_WITH_CUDA) && defined(_LINUX) #if defined(PADDLE_WITH_CUDA) && !defined(_WIN32)
#ifdef __NVCC__ #ifdef __NVCC__
int axis = ctx.Attr<int>("axis"); int axis = ctx.Attr<int>("axis");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册