Skip to content

Commit

Permalink
remove redundant code in ConvolutionLayer::Reshape
Browse files Browse the repository at this point in the history
  • Loading branch information
longjon committed Dec 1, 2014
1 parent a35929f commit 8009436
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/caffe/layers/conv_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ void ConvolutionLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom,
// it goes lazily unused to save memory.
col_buffer_.Reshape(
1, channels_ * kernel_h_ * kernel_w_, height_out_, width_out_);
for (int top_id = 0; top_id < top.size(); ++top_id) {
top[top_id]->Reshape(num_, num_output_, height_out_, width_out_);
}
// Set up the all ones "bias multiplier" for adding biases by BLAS
if (bias_term_) {
bias_multiplier_.Reshape(1, 1, 1, N_);
Expand Down

0 comments on commit 8009436

Please sign in to comment.