Tensor module: const-correctness and constexpr improvements
libeigen/eigen!2239 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
co-authored by
Rasmus Munk Larsen
parent
64885cc6a3
commit
30e669cfe1
@@ -223,7 +223,7 @@ struct TensorEvaluator<const TensorPaddingOp<PaddingDimensions, ArgType>, Device
|
||||
return TensorBlock(internal::TensorBlockKind::kView, NULL, desc.dimensions());
|
||||
}
|
||||
|
||||
static const bool IsColMajor = Layout == static_cast<int>(ColMajor);
|
||||
static constexpr bool IsColMajor = Layout == static_cast<int>(ColMajor);
|
||||
const int inner_dim_idx = IsColMajor ? 0 : NumDims - 1;
|
||||
|
||||
Index offset = desc.offset();
|
||||
|
||||
Reference in New Issue
Block a user