From 0f761d1e0c4c4533228b36d927c827891120eb07 Mon Sep 17 00:00:00 2001 From: julienChemillier Date: Fri, 4 Nov 2022 12:56:13 +0100 Subject: [PATCH] Fix of an issue regarding the activation function --- src/cnn/cnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cnn/cnn.c b/src/cnn/cnn.c index ade10ea..0a06f46 100644 --- a/src/cnn/cnn.c +++ b/src/cnn/cnn.c @@ -111,7 +111,7 @@ void backward_propagation(Network* network, float wanted_number) { output = network->input[i+1]; output_depth = network->depth[i+1]; output_width = network->width[i+1]; - activation = i==0?SIGMOID:k_i->activation; + activation = i==0?SIGMOID:network->kernel[i-1]->activation; if (k_i->cnn) { // Convolution