diff options
author | Eugene Zhulenev <ezhulenev@google.com> | 2018-09-11 13:32:32 -0700 |
---|---|---|
committer | Eugene Zhulenev <ezhulenev@google.com> | 2018-09-11 13:32:32 -0700 |
commit | 81b38a155adf5d527bce5c84cf90cd83c28da445 (patch) | |
tree | 8d0310b4b06a4667447ac7d0b4c66ebd16efb903 /unsupported/test/cxx11_tensor_shuffling.cpp | |
parent | c144bb355b74f4600156284e8202fcf9c0c135d8 (diff) |
Fix compilation of tiled evaluation code with c++03
Diffstat (limited to 'unsupported/test/cxx11_tensor_shuffling.cpp')
-rw-r--r-- | unsupported/test/cxx11_tensor_shuffling.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unsupported/test/cxx11_tensor_shuffling.cpp b/unsupported/test/cxx11_tensor_shuffling.cpp index 467df39c7..062dd1c0f 100644 --- a/unsupported/test/cxx11_tensor_shuffling.cpp +++ b/unsupported/test/cxx11_tensor_shuffling.cpp @@ -81,12 +81,12 @@ static void test_expr_shuffling() Tensor<float, 4, DataLayout> expected; expected = tensor.shuffle(shuffles); - Tensor<float, 4, DataLayout> result(5,7,3,2); + Tensor<float, 4, DataLayout> result(5, 7, 3, 2); - array<ptrdiff_t, 4> src_slice_dim{{2,3,1,7}}; - array<ptrdiff_t, 4> src_slice_start{{0,0,0,0}}; - array<ptrdiff_t, 4> dst_slice_dim{{1,7,3,2}}; - array<ptrdiff_t, 4> dst_slice_start{{0,0,0,0}}; + array<ptrdiff_t, 4> src_slice_dim({2, 3, 1, 7}); + array<ptrdiff_t, 4> src_slice_start({0, 0, 0, 0}); + array<ptrdiff_t, 4> dst_slice_dim({1, 7, 3, 2}); + array<ptrdiff_t, 4> dst_slice_start({0, 0, 0, 0}); for (int i = 0; i < 5; ++i) { result.slice(dst_slice_start, dst_slice_dim) = |