Accurate, albiet slower, way of calculating GFlops for maxpooling