Small improvements to the hidden layer.

This commit is contained in:
Relintai 2023-12-27 23:23:38 +01:00
parent 67f8d49bf5
commit aa010e891c

View File

@ -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() {