From daf9bbeca26e98da2eed0058835cbb04e0a30ad8 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 3 Jun 2020 00:57:41 +0000 Subject: Fix compilation error in logistic packet op. --- Eigen/src/Core/functors/UnaryFunctors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/Core/functors') diff --git a/Eigen/src/Core/functors/UnaryFunctors.h b/Eigen/src/Core/functors/UnaryFunctors.h index 9a81fa365..735d28ac8 100644 --- a/Eigen/src/Core/functors/UnaryFunctors.h +++ b/Eigen/src/Core/functors/UnaryFunctors.h @@ -984,7 +984,7 @@ struct scalar_logistic_op { Packet packetOp(const Packet& _x) const { const Packet cutoff_lower = pset1(-9.f); const Packet lt_mask = pcmp_lt(_x, cutoff_lower); - const bool any_small = predux(lt_mask); + const bool any_small = predux_any(lt_mask); // The upper cut-off is the smallest x for which the rational approximation evaluates to 1. // Choosing this value saves us a few instructions clamping the results at the end. -- cgit v1.2.3