Skip to content

Commit

Permalink
Merge pull request BVLC#1656 from longjon/fix-softmax-loss-stubs
Browse files Browse the repository at this point in the history
Fix an error made in removing the SoftmaxLossLayer GPU stubs
  • Loading branch information
longjon committed Dec 30, 2014
2 parents a03d4f7 + 11add5b commit 9b3b440
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/caffe/layers/softmax_loss_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ void SoftmaxWithLossLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top,
}
}


#ifdef CPU_ONLY
STUB_GPU(SoftmaxWithLossLayer);
#endif

INSTANTIATE_CLASS(SoftmaxWithLossLayer);
REGISTER_LAYER_CLASS(SOFTMAX_LOSS, SoftmaxWithLossLayer);

} // namespace caffe

0 comments on commit 9b3b440

Please sign in to comment.