diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-12-22 17:51:55 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-12-22 17:51:55 -0800 |
commit | bdcbc66a5cca656e1cbdfa97668f3e400a7cb08d (patch) | |
tree | 6a741e0677ed380ee0aa3249280b97e30633883f /unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | |
parent | a1e08fb2a55bf60c81de1687f825d0c3d4e62d22 (diff) |
Don't attempt to vectorize mean reductions of integers since we can't use
SSE or AVX instructions to divide 2 integers.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h index 34ba4e392..f94ffa020 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h @@ -93,7 +93,7 @@ template <typename T> struct SumReducer template <typename T> struct MeanReducer { - static const bool PacketAccess = true; + static const bool PacketAccess = !NumTraits<T>::IsInteger; static const bool IsStateful = true; EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE |