diff options
author | Eugene Zhulenev <ezhulenev@google.com> | 2018-08-09 09:44:07 -0700 |
---|---|---|
committer | Eugene Zhulenev <ezhulenev@google.com> | 2018-08-09 09:44:07 -0700 |
commit | cfaedb38cd662def3b5684a20965b3bc1b0d6a3f (patch) | |
tree | 82dc639a1f91a2eebd9d1afb777945dd8830ff70 /unsupported/test/cxx11_tensor_executor.cpp | |
parent | 1c8b9e10a791cb43b4f730dcb5d7889099cc1c68 (diff) |
Fix bug in a test + compilation errors
Diffstat (limited to 'unsupported/test/cxx11_tensor_executor.cpp')
-rw-r--r-- | unsupported/test/cxx11_tensor_executor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/test/cxx11_tensor_executor.cpp b/unsupported/test/cxx11_tensor_executor.cpp index 448f47f1d..d16ae4d11 100644 --- a/unsupported/test/cxx11_tensor_executor.cpp +++ b/unsupported/test/cxx11_tensor_executor.cpp @@ -317,7 +317,7 @@ static void test_execute_reshape(Device d) DSizes<Index, ReshapedDims> reshaped_dims; reshaped_dims[shuffle[0]] = dims[0] * dims[1]; - for (int i = 2; i < NumDims; ++i) reshaped_dims[shuffle[i]] = dims[i]; + for (int i = 1; i < ReshapedDims; ++i) reshaped_dims[shuffle[i]] = dims[i + 1]; Tensor<T, ReshapedDims, Options, Index> golden = src.reshape(reshaped_dims); |