mirror of
https://github.com/Relintai/pmlpp.git
synced 2025-01-04 16:49:36 +01:00
Small improvements to the hidden layer.
This commit is contained in:
parent
67f8d49bf5
commit
aa010e891c
@ -191,15 +191,9 @@ MLPPHiddenLayer::MLPPHiddenLayer(int p_n_hidden, MLPPActivation::ActivationFunct
|
|||||||
_weights.instance();
|
_weights.instance();
|
||||||
_bias.instance();
|
_bias.instance();
|
||||||
|
|
||||||
_weights->resize(Size2i(_n_hidden, _input->size().x));
|
_initialized = false;
|
||||||
_bias->resize(_n_hidden);
|
|
||||||
|
|
||||||
MLPPUtilities utils;
|
initialize();
|
||||||
|
|
||||||
utils.weight_initializationm(_weights, _weight_init);
|
|
||||||
utils.bias_initializationv(_bias);
|
|
||||||
|
|
||||||
_initialized = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MLPPHiddenLayer::MLPPHiddenLayer() {
|
MLPPHiddenLayer::MLPPHiddenLayer() {
|
||||||
|
Loading…
Reference in New Issue
Block a user