mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-23 23:26:25 +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;
|
return;
|
||||||
} else { // Pooling sur une matrice
|
} else { // Pooling sur une matrice
|
||||||
if (pooling==1) {
|
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) {
|
} 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 {
|
} else {
|
||||||
printf("Erreur dans la reconnaissance de la couche de pooling: %d,%d \n", pooling, i);
|
printf("Erreur dans la reconnaissance de la couche de pooling: %d,%d \n", pooling, i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user