SoftmaxWithLossLayer fix: takes exactly 2 bottom blobs (inherited from
authorJeff Donahue <jeff.donahue@gmail.com>
Thu, 5 Feb 2015 22:04:35 +0000 (14:04 -0800)
committerJeff Donahue <jeff.donahue@gmail.com>
Sat, 14 Feb 2015 00:15:24 +0000 (16:15 -0800)
LossLayer)

include/caffe/loss_layers.hpp

index 09a5c24..ea52f56 100644 (file)
@@ -696,9 +696,6 @@ class SoftmaxWithLossLayer : public LossLayer<Dtype> {
       const vector<Blob<Dtype>*>& top);
 
   virtual inline const char* type() const { return "SoftmaxWithLoss"; }
-  virtual inline int ExactNumBottomBlobs() const { return -1; }
-  virtual inline int MinBottomBlobs() const { return 2; }
-  virtual inline int MaxBottomBlobs() const { return 3; }
   virtual inline int ExactNumTopBlobs() const { return -1; }
   virtual inline int MinTopBlobs() const { return 1; }
   virtual inline int MaxTopBlobs() const { return 2; }