From 6af56beee1845a2a7a2036a81ae01c51bbd16b3b Mon Sep 17 00:00:00 2001 From: snoopyisadog Date: Mon, 12 Apr 2021 15:20:17 +0200 Subject: [PATCH] fix eltwise_layer input_scales init_value --- src/caffe/layers/eltwise_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);