mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-23 15:16:26 +01:00
Fix wrong argument for pooling (forward)
This commit is contained in:
parent
0b8ed61a32
commit
95ce123587
@ -121,9 +121,9 @@ void forward_propagation(Network* network) {
|
||||
return;
|
||||
} else { // Pooling sur une matrice
|
||||
if (pooling==1) {
|
||||
make_average_pooling(input, output, activation, output_depth, output_width);
|
||||
make_average_pooling(input, output, input_width/output_width, output_depth, output_width);
|
||||
} else if (pooling==2) {
|
||||
make_max_pooling(input, output, activation, output_depth, output_width);
|
||||
make_max_pooling(input, output, input_width/output_width, output_depth, output_width);
|
||||
} else {
|
||||
printf("Erreur dans la reconnaissance de la couche de pooling: %d,%d \n", pooling, i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user