diff --git a/mace/kernels/pooling.h b/mace/kernels/pooling.h index 2128f3f022df3ab7451cc5ef472a321928229455..8a35919489cd124edc6919ad4fa998d5ee91b754 100644 --- a/mace/kernels/pooling.h +++ b/mace/kernels/pooling.h @@ -73,7 +73,7 @@ public: case AVG: break; case MAX: - sum_or_max = -std::numeric_limits::max(); + sum_or_max = std::numeric_limits::lowest(); break; default: MACE_CHECK(false, "Unsupported pooling type: ", pooling_type_);