From af02b87345be22a84979dd3781d4905ec5e14391 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Tue, 19 Apr 2022 16:26:28 +0200 Subject: [PATCH] Update utils.c --- src/mnist/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mnist/utils.c b/src/mnist/utils.c index dcc649a..5e7cf79 100644 --- a/src/mnist/utils.c +++ b/src/mnist/utils.c @@ -9,7 +9,7 @@ void print_biais(char* filename) { Reseau* reseau = lire_reseau(".cache/reseau.bin"); - for (int i=0; i < reseau->nb_couches; i++) { + for (int i=1; i < reseau->nb_couches -1; i++) { printf("Couche %d\n", i); for (int j=0; j < reseau->couches[i]->nb_neurones; j++) { printf("Couche %d\tNeurone %d\tBiais: %0.1f\n", i, j, reseau->couches[i]->neurones[j]->biais); @@ -17,7 +17,7 @@ void print_biais(char* filename) { } } -int main(int argc, int* argv) { +int main(int argc, char* argv[]) { print_biais(".cache/reseau.bin"); return 1; } \ No newline at end of file