From 92c1bb0523f540f18a48d2f9b51b7944736e3b7e Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 28 Dec 2023 11:16:20 +0100 Subject: [PATCH] Fix weights size in MLPPMultiOutputLayer. --- mlpp/multi_output_layer/multi_output_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlpp/multi_output_layer/multi_output_layer.cpp b/mlpp/multi_output_layer/multi_output_layer.cpp index abd0ef6..393a6d2 100644 --- a/mlpp/multi_output_layer/multi_output_layer.cpp +++ b/mlpp/multi_output_layer/multi_output_layer.cpp @@ -159,7 +159,7 @@ MLPPMultiOutputLayer::MLPPMultiOutputLayer(int n_output, int p_n_hidden, MLPPAct _weights.instance(); _bias.instance(); - _weights->resize(Size2i(_n_hidden, _n_output)); + _weights->resize(Size2i(_n_output, _n_hidden)); _bias->resize(_n_output); MLPPUtilities utils;