Skip to content

Commit 6dde8cf

Browse files
committed
refine the comments
1 parent ed7cd47 commit 6dde8cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/caffe/layers/pow_layer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ void PowLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
1919
const vector<int>::const_iterator& shape_start =
2020
bottom[0]->shape().begin();
2121
const vector<int>::const_iterator& shape_end = bottom[0]->shape().end();
22-
vector<int> bias_shape(shape_start, shape_end);
23-
this->blobs_[0].reset(new Blob<Dtype>(bias_shape));
22+
vector<int> second_shape(shape_start, shape_end);
23+
this->blobs_[0].reset(new Blob<Dtype>(second_shape));
24+
// Note: seems not to support broadcasting data value initialize when
25+
// input1 shape < input2 shape in this special situation
2426

2527
this->param_propagate_down_.resize(this->blobs_.size(), true);
2628
}

0 commit comments

Comments
 (0)