Fix of an issue regarding the activation function

This commit is contained in:
julienChemillier 2022-11-04 12:56:13 +01:00
parent 510cf3c135
commit 0f761d1e0c

View File

@ -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