Don't use the rational approximation to the logistic function on GPUs as it appears to be slightly slower.

This commit is contained in:
Rasmus Munk Larsen 2020-01-09 00:04:26 +00:00
parent 4217a9f090
commit e6fcee995b

View File

@ -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<float> {
}
}
};
#endif // #ifndef EIGEN_GPU_COMPILE_PHASE
template <typename T>
struct functor_traits<scalar_logistic_op<T> > {