mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Fixed a typo.
This commit is contained in:
parent
fcf59e1c37
commit
5a51366ea5
@ -306,7 +306,7 @@ static inline EIGEN_DEVICE_FUNC bool (isinf)(const Eigen::half& a) {
|
|||||||
}
|
}
|
||||||
static inline EIGEN_HALF_CUDA_H bool (isnan)(const Eigen::half& a) {
|
static inline EIGEN_HALF_CUDA_H bool (isnan)(const Eigen::half& a) {
|
||||||
#if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530
|
#if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530
|
||||||
return __hisnan(x);
|
return __hisnan(a);
|
||||||
#else
|
#else
|
||||||
return (a.x & 0x7fff) > 0x7c00;
|
return (a.x & 0x7fff) > 0x7c00;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user