diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-05 15:40:01 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-05 15:40:01 -0700 |
commit | 0451940fa4caeb6d9658b971e452fcb383b45874 (patch) | |
tree | f37e6aac5e697e908c8f78d130e14fb1ec05bd3b /Eigen/src/Core | |
parent | 910e0135066b3f6c928dc11dff2120284e1b6d26 (diff) |
Relaxed the dummy precision for fp16
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r-- | Eigen/src/Core/arch/CUDA/Half.h | 2 |
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); } |