From b2c9ba2beef4b5fd61513d73911c678e93c8dd9d Mon Sep 17 00:00:00 2001 From: Dieter Dobbelaere Date: Wed, 3 Apr 2024 10:52:24 +0200 Subject: [PATCH] Fix preprocessor condition on when to use fast float logistic implementation. --- Eigen/src/Core/functors/UnaryFunctors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/functors/UnaryFunctors.h b/Eigen/src/Core/functors/UnaryFunctors.h index 4447b82f7..2f9b920d6 100644 --- a/Eigen/src/Core/functors/UnaryFunctors.h +++ b/Eigen/src/Core/functors/UnaryFunctors.h @@ -1126,7 +1126,7 @@ struct scalar_logistic_op : scalar_logistic_op_impl {}; // TODO(rmlarsen): Enable the following on host when integer_packet is defined // for the relevant packet types. -#ifdef EIGEN_GPU_CC +#ifndef EIGEN_GPUCC /** \internal * \brief Template specialization of the logistic function for float.