diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2018-09-11 14:09:00 -0700 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2018-09-11 14:09:00 -0700 |
commit | e289f44c565aa6d12d21a498ef34a515891cf520 (patch) | |
tree | 1ba0d77974a6708c81b4c126ec1a566da1a9f2a6 | |
parent | 5da960702fe50cd322a583aff3ab82f794afe032 (diff) |
Don't vectorize the MeanReducer unless pdiv is available.
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h index 9fd276075..51572f9e7 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h @@ -158,7 +158,8 @@ template <typename T, typename Device> struct reducer_traits<MeanReducer<T>, Device> { enum { Cost = NumTraits<T>::AddCost, - PacketAccess = PacketType<T, Device>::HasAdd && !NumTraits<T>::IsInteger, + PacketAccess = PacketType<T, Device>::HasAdd && + PacketType<T, Device>::HasDiv && !NumTraits<T>::IsInteger, IsStateful = true, IsExactlyAssociative = NumTraits<T>::IsInteger }; |