Joseph Redmon
2015-09-22 fed6d6e31d819ecae21e9c3b9315b5877deb3f42
src/avgpool_layer.c
@@ -58,7 +58,7 @@
            int out_index = k + b*l.c;
            for(i = 0; i < l.h*l.w; ++i){
                int in_index = i + l.h*l.w*(k + b*l.c);
                state.delta[in_index] = l.delta[out_index] / (l.h*l.w);
                state.delta[in_index] += l.delta[out_index] / (l.h*l.w);
            }
        }
    }