diff --git a/src/caffe/layers/cudnn_conv_layer.cu b/src/caffe/layers/cudnn_conv_layer.cu index 0348e93774c..67cdc02275b 100644 --- a/src/caffe/layers/cudnn_conv_layer.cu +++ b/src/caffe/layers/cudnn_conv_layer.cu @@ -58,6 +58,8 @@ void CuDNNConvolutionLayer::Forward_gpu( // NOLINT_NEXT_LINE(whitespace/operators) CUDA_CHECK(cudaStreamSynchronize(cudaStreamLegacy)); } + // Possibly use faster algorithms by allowing larger workspace. + use_modest_workspace_ = false; } template @@ -130,8 +132,6 @@ void CuDNNConvolutionLayer::Backward_gpu(const vector*>& top, // NOLINT_NEXT_LINE(whitespace/operators) CUDA_CHECK(cudaStreamSynchronize(cudaStreamLegacy)); } - // Possibly use faster algorithms by allowing larger workspace. - use_modest_workspace_ = false; } INSTANTIATE_LAYER_GPU_FUNCS(CuDNNConvolutionLayer);