From 721d9597d41adec817c8ec78f8cf4fb16b3fa24d Mon Sep 17 00:00:00 2001 From: julienChemillier Date: Sun, 15 Jan 2023 17:51:23 +0100 Subject: [PATCH] Fix indices error --- src/cnn/make.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cnn/make.c b/src/cnn/make.c index 9f1016e..29290cf 100644 --- a/src/cnn/make.c +++ b/src/cnn/make.c @@ -33,7 +33,7 @@ void make_dense(Kernel_nn* kernel, float* input, float* output, int size_input, for (int i=0; i < size_output; i++) { f = kernel->bias[i]; for (int j=0; j < size_input; j++) { - f += kernel->weights[i][j]*input[j]; + f += kernel->weights[j][i]*input[j]; } output[i] = f; }