Skip to content

Commit

Permalink
Merge pull request #183 from drnikolaev/caffe-0.15-test-findex
Browse files Browse the repository at this point in the history
Hot fix preventing redundant Find*Ex calls during TEST phase
  • Loading branch information
drnikolaev authored Jun 30, 2016
2 parents 460aff0 + 911baa4 commit 6487a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/caffe/layers/cudnn_conv_layer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ void CuDNNConvolutionLayer<Dtype>::Forward_gpu(
// NOLINT_NEXT_LINE(whitespace/operators)
CUDA_CHECK(cudaStreamSynchronize(cudaStreamLegacy));
}
// Possibly use faster algorithms by allowing larger workspace.
use_modest_workspace_ = false;
}

template<typename Dtype>
Expand Down Expand Up @@ -130,8 +132,6 @@ void CuDNNConvolutionLayer<Dtype>::Backward_gpu(const vector<Blob<Dtype>*>& 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);
Expand Down

0 comments on commit 6487a2d

Please # to comment.