Skip to content

Commit

Permalink
Merge pull request BVLC#2989 from jyegerlehner/embed-layer-compile-wa…
Browse files Browse the repository at this point in the history
…rning

Fix EmbedLayer compiler warning for unused variable.
  • Loading branch information
jeffdonahue committed Aug 27, 2015
2 parents f572eef + 4d7fe4d commit 4c561fd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/caffe/layers/embed_layer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ void EmbedLayer<Dtype>::Backward_gpu(const vector<Blob<Dtype>*>& top,
CHECK(!propagate_down[0]) << "Can't backpropagate to EmbedLayer input.";
if (this->param_propagate_down_[0]) {
const int top_count = top[0]->count();
const int count = this->blobs_[0]->count();
const Dtype* top_diff = top[0]->gpu_diff();
const Dtype* bottom_data = bottom[0]->gpu_data();
Dtype* weight_diff = this->blobs_[0]->mutable_gpu_diff();
Expand Down

0 comments on commit 4c561fd

Please sign in to comment.