fix the branch of code choose (#31200)

test_model_benchmark_ci
wangchaochaohu 4 years ago committed by GitHub
parent d11602481c
commit f114c3f8ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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");

Loading…
Cancel
Save