mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-13 18:03:13 +08:00
Don't use the rational approximation to the logistic function on GPUs as it appears to be slightly slower.
This commit is contained in:
parent
4217a9f090
commit
e6fcee995b
@ -924,6 +924,7 @@ struct scalar_logistic_op {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef EIGEN_GPU_COMPILE_PHASE
|
||||||
/** \internal
|
/** \internal
|
||||||
* \brief Template specialization of the logistic function for float.
|
* \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>
|
template <typename T>
|
||||||
struct functor_traits<scalar_logistic_op<T> > {
|
struct functor_traits<scalar_logistic_op<T> > {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user