mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix usages of Eigen::array to be compatible with std::array.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
77833f9320
commit
13092b5d04
@@ -977,11 +977,12 @@ struct TensorReductionEvaluatorBase<const TensorReductionOp<Op, Dims, ArgType, M
|
||||
// Dimensions of the output of the operation.
|
||||
Dimensions m_dimensions;
|
||||
// Precomputed strides for the output tensor.
|
||||
array<Index, NumOutputDims> m_outputStrides;
|
||||
array<internal::TensorIntDivisor<Index>, NumOutputDims> m_fastOutputStrides;
|
||||
array<Index, NumPreservedStrides> m_preservedStrides;
|
||||
// Avoid zero-sized arrays, since element access fails to compile on GPU.
|
||||
array<Index, (std::max)(NumOutputDims, 1)> m_outputStrides;
|
||||
array<internal::TensorIntDivisor<Index>, (std::max)(NumOutputDims, 1)> m_fastOutputStrides;
|
||||
array<Index, (std::max)(NumPreservedStrides, 1)> m_preservedStrides;
|
||||
// Map from output to input dimension index.
|
||||
array<Index, NumOutputDims> m_output_to_input_dim_map;
|
||||
array<Index, (std::max)(NumOutputDims, 1)> m_output_to_input_dim_map;
|
||||
// How many values go into each reduction
|
||||
Index m_numValuesToReduce;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user