aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/tensors
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-03-23 14:21:04 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-03-23 14:21:04 -0700
commit7168afde5e9c3b05823b939a499c6752d2db10f7 (patch)
tree6b236c47cb0fc3e566c610429a3e22f4429f1f64 /bench/tensors
parent2062ee2d269eac5ff78f70ac3133d0a47c22d9fa (diff)
Made the tensor benchmarks compile on MacOS
Diffstat (limited to 'bench/tensors')
-rw-r--r--bench/tensors/tensor_benchmarks.h4
1 files 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 <typename Device, typename T> class BenchmarkSuite {
#ifndef EIGEN_HAS_INDEX_LIST
Eigen::array<TensorIndex, 1> 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 <typename Device, typename T> class BenchmarkSuite {
input_size[1] = n_;
const TensorMap<Tensor<T, 2, 0, TensorIndex>, Eigen::Aligned> B(
b_, input_size);
- const Eigen::array<TensorIndex, 0> output_size;
+ Eigen::array<TensorIndex, 0> output_size;
TensorMap<Tensor<float, 0, 0, TensorIndex>, Eigen::Aligned> C(
c_, output_size);