From dfa0549f8776f8826cf62232b22d1b6d1ecded2b Mon Sep 17 00:00:00 2001 From: lvmengsi Date: Wed, 23 Oct 2019 16:19:53 +0800 Subject: [PATCH] Revert "fix_depthwise_conv_cudnn, test=develop (#20712)" (#20782) This reverts commit dc229b4195052c67ceb28cba4859f10d7a49aa64. --- paddle/fluid/operators/conv_cudnn_op.cu | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/paddle/fluid/operators/conv_cudnn_op.cu b/paddle/fluid/operators/conv_cudnn_op.cu index c6af6da582b..274da9abf08 100644 --- a/paddle/fluid/operators/conv_cudnn_op.cu +++ b/paddle/fluid/operators/conv_cudnn_op.cu @@ -265,16 +265,6 @@ class CUDNNConvOpKernel : public framework::OpKernel { algo = search::Find(args, exhaustive_search, false, 0, ctx); workspace_size = search::GetWorkspaceSize(args, algo); -#if CUDNN_VERSION_MIN(7, 0, 1) - // when groups > 1, SearchAlgorithm find algo is CUDNN_CONVOLUTION_\ - // FWD_ALGO_WINOGRAD_NONFUSED, but this kind of algorithm is unstable - // in forward computation, so change the algorithm to CUDNN_CONVOLUTION_\ - // FWD_ALGO_IMPLICIT_GEMM manually. - if (ctx.Attr("groups") > 1) { - algo = static_cast(0); - } -#endif - // ------------------- cudnn conv forward --------------------- ScalingParamType alpha = 1.0f, beta = 0.0f; for (int i = 0; i < groups; i++) { @@ -815,7 +805,6 @@ class CUDNNConvDoubleGradOpKernel : public framework::OpKernel { #if CUDNN_VERSION_MIN(7, 0, 1) iwo_group = 1; c_group = groups; - groups = 1; #endif auto dtype = platform::CudnnDataType::type; -- GitLab