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:
int scalarCount_;
int packetCount_;
DenseIndex scalarCount_;
DenseIndex packetCount_;
};
template <typename T> struct MaxReducer