From e6fcee995b0083e5652c79957090684a47a727c3 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Thu, 9 Jan 2020 00:04:26 +0000 Subject: Don't use the rational approximation to the logistic function on GPUs as it appears to be slightly slower. --- Eigen/src/Core/functors/UnaryFunctors.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Eigen/src/Core/functors') diff --git a/Eigen/src/Core/functors/UnaryFunctors.h b/Eigen/src/Core/functors/UnaryFunctors.h index 410cc6f58..a07ddaa30 100644 --- a/Eigen/src/Core/functors/UnaryFunctors.h +++ b/Eigen/src/Core/functors/UnaryFunctors.h @@ -924,6 +924,7 @@ struct scalar_logistic_op { } }; +#ifndef EIGEN_GPU_COMPILE_PHASE /** \internal * \brief Template specialization of the logistic function for float. * @@ -1007,6 +1008,7 @@ struct scalar_logistic_op { } } }; +#endif // #ifndef EIGEN_GPU_COMPILE_PHASE template struct functor_traits > { -- cgit v1.2.3