From 815a87ee1eacf538056e507ee7538eea35b6bd7b Mon Sep 17 00:00:00 2001 From: julienChemillier Date: Sun, 14 May 2023 14:09:40 +0200 Subject: [PATCH] Change in comment of 'struct.h' --- src/cnn/include/struct.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cnn/include/struct.h b/src/cnn/include/struct.h index 9aa098a..6d489fa 100644 --- a/src/cnn/include/struct.h +++ b/src/cnn/include/struct.h @@ -12,18 +12,18 @@ typedef struct Kernel_cnn { // Noyau ayant une couche matricielle en sortie - int k_size; // k_size = input_width - output_width + 1 + int k_size; // k_size = 2*padding + input_width + stride - output_width*stride int rows; // Depth de l'input int columns; // Depth de l'output - float*** bias; // bias[columns][output_width][output_width] <=> bias[depth output][dim output][dim output] + float*** bias; // bias[columns][output_width][output_width] <=> bias[output depth][output width][output width] float*** d_bias; // d_bias[columns][output_width][output_width] #ifdef ADAM_CNN_BIAS float*** s_d_bias; // s_d_bias[columns][output_width][output_width] float*** v_d_bias; // v_d_bias[columns][output_width][output_width] #endif - float**** weights; // weights[rows][columns][k_size][k_size] <=> weights[depth input][depth output][size kernel][size kernel] + float**** weights; // weights[rows][columns][k_size][k_size] <=> weights[input depth][output depth][kernel size][kernel size] float**** d_weights; // d_weights[rows][columns][k_size][k_size] #ifdef ADAM_CNN_WEIGHTS float**** s_d_weights; // s_d_weights[rows][columns][k_size][k_size]