| 6 | |
| 7 | template <typename Dtype> |
| 8 | void LossLayer<Dtype>::LayerSetUp( |
| 9 | const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { |
| 10 | // LossLayers have a non-zero (1) loss by default. |
| 11 | if (this->layer_param_.loss_weight_size() == 0) { |
| 12 | this->layer_param_.add_loss_weight(Dtype(1)); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | template <typename Dtype> |
| 17 | void LossLayer<Dtype>::Reshape( |
nothing calls this directly
no outgoing calls
no test coverage detected