aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/cxx11_tensor_shuffling.cpp
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2018-08-09 09:44:07 -0700
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2018-08-09 09:44:07 -0700
commitcfaedb38cd662def3b5684a20965b3bc1b0d6a3f (patch)
tree82dc639a1f91a2eebd9d1afb777945dd8830ff70 /unsupported/test/cxx11_tensor_shuffling.cpp
parent1c8b9e10a791cb43b4f730dcb5d7889099cc1c68 (diff)
Fix bug in a test + compilation errors
Diffstat (limited to 'unsupported/test/cxx11_tensor_shuffling.cpp')
-rw-r--r--unsupported/test/cxx11_tensor_shuffling.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/unsupported/test/cxx11_tensor_shuffling.cpp b/unsupported/test/cxx11_tensor_shuffling.cpp
index ab19b6e6b..467df39c7 100644
--- a/unsupported/test/cxx11_tensor_shuffling.cpp
+++ b/unsupported/test/cxx11_tensor_shuffling.cpp
@@ -83,10 +83,10 @@ static void test_expr_shuffling()
Tensor<float, 4, DataLayout> result(5,7,3,2);
- array<int, 4> src_slice_dim{{2,3,1,7}};
- array<int, 4> src_slice_start{{0,0,0,0}};
- array<int, 4> dst_slice_dim{{1,7,3,2}};
- array<int, 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) =