From f02856c6406cd36b5d7f1b98e27d85df5af08d06 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 15 Mar 2023 11:42:57 -0700 Subject: [PATCH] Use EIGEN_NOT_A_MACRO macro (oh the irony!) to avoid build issue in TensorFlow. --- Eigen/src/Core/MathFunctions.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 6b1bfacdd..40ee3f551 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -897,7 +897,7 @@ EIGEN_DEVICE_FUNC std::enable_if_t<(std::numeric_limits::has_infinity || std: bool> isfinite_impl(const T& x) { EIGEN_USING_STD(isfinite); - return (isfinite)(x); + return isfinite EIGEN_NOT_A_MACRO (x); } template @@ -911,7 +911,7 @@ EIGEN_DEVICE_FUNC std::enable_if_t< (std::numeric_limits::has_infinity && !NumTraits::IsComplex), bool> isinf_impl(const T& x) { EIGEN_USING_STD(isinf); - return (isinf)(x); + return isinf EIGEN_NOT_A_MACRO (x); } template @@ -930,7 +930,7 @@ EIGEN_DEVICE_FUNC bool> isnan_impl(const T& x) { EIGEN_USING_STD(isnan); - return (isnan)(x); + return isnan EIGEN_NOT_A_MACRO (x); } // The following overload are defined at the end of this file