From 43ffdc1b56e05f52ca6be602c1cdbfb0bb7b12fb Mon Sep 17 00:00:00 2001 From: julienChemillier Date: Wed, 9 Nov 2022 10:55:14 +0100 Subject: [PATCH] Fix an issue --- src/cnn/backpropagation.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/cnn/backpropagation.c b/src/cnn/backpropagation.c index ce68c1d..49ea293 100644 --- a/src/cnn/backpropagation.c +++ b/src/cnn/backpropagation.c @@ -3,6 +3,7 @@ #include "include/backpropagation.h" #include "include/struct.h" +// The first layer needs to be a convolution or a fully connected one int min(int a, int b) { return ad_weights[cpt][j] += input[i][k][l]*output[j]; - cpt++; } + cpt++; } } } @@ -166,9 +167,3 @@ void backward_convolution(Kernel_cnn* ker, float*** input, float*** input_z, flo } } } - - -// Only last_... have been done, we have to deal with the d_... part -// It's EASY but it needs to be done - -// The first layer needs to be a convolution or a fully connected one \ No newline at end of file