提交 b066dd36 编写于 作者: M Maksim Shabunin

Fixed uninitialized class fields

上级 d30a0c6f
...@@ -99,6 +99,8 @@ namespace cv { ...@@ -99,6 +99,8 @@ namespace cv {
std::map<int, std::map<std::string, std::string> > layers_cfg; std::map<int, std::map<std::string, std::string> > layers_cfg;
std::map<std::string, std::string> net_cfg; std::map<std::string, std::string> net_cfg;
NetParameter() : width(0), height(0), channels(0) {}
int layer_size() const { return layers.size(); } int layer_size() const { return layers.size(); }
int input_size() const { return 1; } int input_size() const { return 1; }
......
...@@ -122,7 +122,7 @@ public: ...@@ -122,7 +122,7 @@ public:
int channels; int channels;
size_t planeSize; size_t planeSize;
EltwiseInvoker() : srcs(0), nsrcs(0), dst(0), coeffs(0), op(EltwiseLayer::PROD), nstripes(0), activ(0) {} EltwiseInvoker() : srcs(0), nsrcs(0), dst(0), coeffs(0), op(EltwiseLayer::PROD), nstripes(0), activ(0), channels(0), planeSize(0) {}
static void run(const Mat** srcs, int nsrcs, Mat& dst, static void run(const Mat** srcs, int nsrcs, Mat& dst,
const std::vector<float>& coeffs, EltwiseOp op, const std::vector<float>& coeffs, EltwiseOp op,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册