Skip to content

Commit

Permalink
fix eltwise_layer input_scales init_value
Browse files Browse the repository at this point in the history
  • Loading branch information
snoopyisadog committed Apr 12, 2021
1 parent 2a1b30a commit 6af56be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caffe/layers/eltwise_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void EltwiseLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
coeffs_[i] = this->layer_param().eltwise_param().coeff(i);
}
}
input_scale_ = vector<Dtype>(bottom.size(), 0);
input_scale_ = vector<Dtype>(bottom.size(), 1.0);
if (this->layer_param().eltwise_param().input_scale_size()) {
for (int i = 0; i < bottom.size(); ++i) {
input_scale_[i] = this->layer_param().eltwise_param().input_scale(i);
Expand Down

0 comments on commit 6af56be

Please sign in to comment.