     })
     return;
   }
+#endif
 #if MXNET_USE_CUDNN == 0 || CUDNN_MAJOR < 7
   if (param.num_filter == param.num_group &&
       param.layout.value() == mshadow::kNCHW &&

    })
    return;
  }
#if MXNET_USE_CUDNN == 0 || CUDNN_MAJOR < 7
  if (param.num_filter == param.num_group &&
      param.layout.value() == mshadow::kNCHW &&

  const ConvolutionParam& param = nnvm::get<ConvolutionParam>(attrs.parsed);
  int dtype = inputs[conv::kData].type_flag_;

#if CUDNN_MAJOR < 5
  if (param_.layout.value() != kNCW &&
      param_.layout.value() != kNCHW &&
      param_.layout.value() != kNCDHW) {
    // Need CuDNN > 5.0 for layout support. use MXNet implementation
    MSHADOW_REAL_TYPE_SWITCH(dtype, DType, {
      ConvolutionOp<gpu, DType> op;
      op.Init(param);
