Fixed uninitialized memory usage in ANN_MLP

This commit is contained in:
Maksim Shabunin 2014-12-31 11:59:53 +03:00
parent d004ee58c5
commit 38d37d2b00

View File

@ -103,6 +103,7 @@ public:
ANN_MLPImpl( const Params& p ) ANN_MLPImpl( const Params& p )
{ {
clear();
setParams(p); setParams(p);
} }
@ -126,6 +127,7 @@ public:
rng = RNG((uint64)-1); rng = RNG((uint64)-1);
weights.clear(); weights.clear();
trained = false; trained = false;
max_buf_sz = 1 << 12;
} }
int layer_count() const { return (int)layer_sizes.size(); } int layer_count() const { return (int)layer_sizes.size(); }