diff --git a/paddle/fluid/operators/conv_cudnn_op.cu b/paddle/fluid/operators/conv_cudnn_op.cu index cc5ae4c8375516a12e647697cc0d2cc03379eaba..c885bf0d50ee1e177dff8f746cf6bbc93b30f625 100644 --- a/paddle/fluid/operators/conv_cudnn_op.cu +++ b/paddle/fluid/operators/conv_cudnn_op.cu @@ -559,7 +559,8 @@ class CUDNNConvGradOpKernel : public framework::OpKernel { cudnnConvolutionBwdFilterAlgo_t filter_algo = static_cast(0); size_t workspace_size = 0; - int iwo_groups, c_groups; + int iwo_groups = groups; + int c_groups = 1; #if CUDNN_VERSION_MIN(7, 0, 1) iwo_groups = 1;