mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-11-08 13:12:09 +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();
|
||||
_bias.instance();
|
||||
|
||||
_weights->resize(Size2i(_n_hidden, _input->size().x));
|
||||
_bias->resize(_n_hidden);
|
||||
_initialized = false;
|
||||
|
||||
MLPPUtilities utils;
|
||||
|
||||
utils.weight_initializationm(_weights, _weight_init);
|
||||
utils.bias_initializationv(_bias);
|
||||
|
||||
_initialized = true;
|
||||
initialize();
|
||||
}
|
||||
|
||||
MLPPHiddenLayer::MLPPHiddenLayer() {
|
||||
|
Loading…
Reference in New Issue
Block a user