Merge pull request #3668 from mshabunin:fix-ann-memory-access

pull/3681/head
Vadim Pisarevsky 10 years ago
commit 3f86e7b75a
  1. 2
      modules/ml/src/ann_mlp.cpp
  2. 2
      samples/cpp/points_classifier.cpp

@ -731,7 +731,7 @@ public:
for( i = 0; i < l_count; i++ ) for( i = 0; i < l_count; i++ )
{ {
int n = layer_sizes[i]; int n = layer_sizes[i];
x[i].resize(n); x[i].resize(n+1);
df[i].resize(n); df[i].resize(n);
dw[i].create(weights[i].size(), CV_64F); dw[i].create(weights[i].size(), CV_64F);
} }

@ -398,5 +398,5 @@ int main()
} }
} }
return 1; return 0;
} }

Loading…
Cancel
Save