From bc36f3a4b2cb948b1e938ca2721d4bd739ace793 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me>
Date: Tue, 5 Mar 2024 11:13:42 +0100
Subject: [PATCH] chore : removed dead code

---
 .../cpu/operator/GlobalAveragePoolingImpl_forward_kernels.hpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/aidge/backend/cpu/operator/GlobalAveragePoolingImpl_forward_kernels.hpp b/include/aidge/backend/cpu/operator/GlobalAveragePoolingImpl_forward_kernels.hpp
index cab1dc24..f50d558c 100644
--- a/include/aidge/backend/cpu/operator/GlobalAveragePoolingImpl_forward_kernels.hpp
+++ b/include/aidge/backend/cpu/operator/GlobalAveragePoolingImpl_forward_kernels.hpp
@@ -51,9 +51,7 @@ void GlobalAveragePoolingImpl_cpu_forward_kernel(
   for (DimSize_t batch = 0; batch < dims[0]; ++batch) {
     for (DimSize_t channel = 0; channel < dims[1]; ++channel) {
       const I *filter_start = std::next(
-          input, batch * in_batch_nb_elems + (channel * in_channel_nb_elems));
-      // I sum = std::accumulate(&filter_start[0],
-      //                         &filter_start[in_batch_nb_elems + 1], 0.f);
+          input, (batch * in_batch_nb_elems) + (channel * in_channel_nb_elems));
       I sum = 0;
       for (size_t i = 0; i < in_channel_nb_elems; ++i) {
         sum += filter_start[i];
-- 
GitLab