Fixed ANN_MLP dw initialization when moment is not 0

This commit is contained in:
Maksim Shabunin 2015-05-13 12:05:08 +03:00
parent 4af2eb22ab
commit b95769333c

View File

@ -739,7 +739,7 @@ public:
int n = layer_sizes[i];
x[i].resize(n+1);
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);