Skip to content
Snippets Groups Projects
Commit b2ba08cc authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Merge branch 'nobias' of https://gitlab.eclipse.org/eclipse/aidge/aidge_backend_cpu into nobias

parents 848eec13 1b92635b
No related branches found
No related tags found
No related merge requests found
......@@ -91,14 +91,8 @@ void AvgPoolingImpl2D_cpu_forward_kernel(const AvgPooling_Op<2>::Attrs &attrs,
output[oIndexFull] += input[iIndex + (ix+sx)*dims[3] + (iy+sy)];
}
}
if (std::get<2>(attrs)) {
// count_include_pad is true
output[oIndexFull] /= std::get<1>(attrs)[0] * std::get<1>(attrs)[1];
}
else {
// padding not used
output[oIndexFull] /= (sxMax - sxMin) * (syMax - syMin);
}
// padding not used
output[oIndexFull] /= (sxMax - sxMin) * (syMax - syMin);
}
}
}
......
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