From 7168afde5e9c3b05823b939a499c6752d2db10f7 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 23 Mar 2016 14:21:04 -0700 Subject: [PATCH] Made the tensor benchmarks compile on MacOS --- bench/tensors/tensor_benchmarks.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/tensors/tensor_benchmarks.h b/bench/tensors/tensor_benchmarks.h index d916f787e..a4f97728d 100644 --- a/bench/tensors/tensor_benchmarks.h +++ b/bench/tensors/tensor_benchmarks.h @@ -333,7 +333,7 @@ template class BenchmarkSuite { #ifndef EIGEN_HAS_INDEX_LIST Eigen::array sum_along_dim; - sum_along_dim = 1; + sum_along_dim[0] = 1; #else // Take advantage of cxx11 to give the compiler information it can use to // optimize the code. @@ -356,7 +356,7 @@ template class BenchmarkSuite { input_size[1] = n_; const TensorMap, Eigen::Aligned> B( b_, input_size); - const Eigen::array output_size; + Eigen::array output_size; TensorMap, Eigen::Aligned> C( c_, output_size);