Commit b9576933 authored by Maksim Shabunin's avatar Maksim Shabunin

Fixed ANN_MLP dw initialization when moment is not 0

parent 4af2eb22
...@@ -739,7 +739,7 @@ public: ...@@ -739,7 +739,7 @@ public:
int n = layer_sizes[i]; int n = layer_sizes[i];
x[i].resize(n+1); x[i].resize(n+1);
df[i].resize(n); df[i].resize(n);
dw[i].create(weights[i].size(), CV_64F); dw[i] = Mat::zeros(weights[i].size(), CV_64F);
} }
Mat _idx_m(1, count, CV_32S); Mat _idx_m(1, count, CV_32S);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment