aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-05-05 15:40:01 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-05-05 15:40:01 -0700
commit0451940fa4caeb6d9658b971e452fcb383b45874 (patch)
treef37e6aac5e697e908c8f78d130e14fb1ec05bd3b /Eigen/src/Core
parent910e0135066b3f6c928dc11dff2120284e1b6d26 (diff)
Relaxed the dummy precision for fp16
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r--Eigen/src/Core/arch/CUDA/Half.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/CUDA/Half.h b/Eigen/src/Core/arch/CUDA/Half.h
index 060c2c805..a63b20318 100644
--- a/Eigen/src/Core/arch/CUDA/Half.h
+++ b/Eigen/src/Core/arch/CUDA/Half.h
@@ -378,7 +378,7 @@ template<> struct NumTraits<Eigen::half>
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE Eigen::half epsilon() {
return internal::raw_uint16_to_half(0x0800);
}
- EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE Eigen::half dummy_precision() { return half(1e-3f); }
+ EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE Eigen::half dummy_precision() { return half(1e-2f); }
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE Eigen::half highest() {
return internal::raw_uint16_to_half(0x7bff);
}