MCPcopy Create free account
hub / github.com/BVLC/caffe / LayerSetUp

Method LayerSetUp

src/caffe/layers/loss_layer.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7template <typename Dtype>
8void 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
16template <typename Dtype>
17void LossLayer<Dtype>::Reshape(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected