Skip to content
Snippets Groups Projects
Commit 9fa59b93 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

chore : removed dead code

parent 328e8546
No related branches found
No related tags found
3 merge requests!50version 0.2.0,!47Draft: TEST_CI_FORK_DO_NOT_MERGE,!42feat/operator_globalAveragePooling
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment