Use DenseIndex in the MeanReducer to avoid overflows when processing very large tensors.

This commit is contained in:
Benoit Steiner 2016-04-19 11:53:58 -07:00
parent 84543c8be2
commit 50968a0a3e

View File

@ -158,8 +158,8 @@ template <typename T> struct MeanReducer
} }
protected: protected:
int scalarCount_; DenseIndex scalarCount_;
int packetCount_; DenseIndex packetCount_;
}; };
template <typename T> struct MaxReducer template <typename T> struct MaxReducer