Fixed uninitialized memory usage in ANN_MLP
This commit is contained in:
parent
d004ee58c5
commit
38d37d2b00
@ -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(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user