From 866e2f9a16f61fc1ed8775e0470dcfd61be0b716 Mon Sep 17 00:00:00 2001 From: julienChemillier Date: Fri, 17 Feb 2023 18:13:59 +0100 Subject: [PATCH] Fix non defined variable in initialisation.c --- src/cnn/initialisation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cnn/initialisation.c b/src/cnn/initialisation.c index 28d8b39..c2635b9 100644 --- a/src/cnn/initialisation.c +++ b/src/cnn/initialisation.c @@ -12,7 +12,7 @@ void initialisation_1d_matrix(int initialisation, float* matrix, int dim, int n_in) { int n; if (initialisation == GLOROT) { - n = (n_in + n)/2; + n = (n_in + dim)/2; } else if (initialisation == HE) { n = n_in/2;