diff --git a/src/caffe/layers/eltwise_layer.cpp b/src/caffe/layers/eltwise_layer.cpp index ec47c602..7d3ac378 100644 --- a/src/caffe/layers/eltwise_layer.cpp +++ b/src/caffe/layers/eltwise_layer.cpp @@ -27,7 +27,7 @@ void EltwiseLayer::LayerSetUp(const vector*>& bottom, coeffs_[i] = this->layer_param().eltwise_param().coeff(i); } } - input_scale_ = vector(bottom.size(), 0); + input_scale_ = vector(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);