mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Fixed clang related compilation error
This commit is contained in:
parent
d3f533b395
commit
10bea90c4a
@ -259,7 +259,7 @@ template <typename Device> class BenchmarkSuite {
|
||||
TensorMap<Tensor<float, 1, 0, TensorIndex>, Eigen::Aligned> C(c_, output_size);
|
||||
|
||||
#ifndef EIGEN_HAS_INDEX_LIST
|
||||
const Eigen::array<TensorIndex, 1> sum_along_dim(0);
|
||||
const Eigen::array<TensorIndex, 1> sum_along_dim = {{0}};
|
||||
#else
|
||||
// Take advantage of cxx11 to give the compiler information it can use to
|
||||
// optimize the code.
|
||||
|
Loading…
x
Reference in New Issue
Block a user