Home
last modified time | relevance | path

Searched refs:reversed_tensor (Results 1 – 1 of 1) sorted by relevance

/external/eigen/unsupported/test/
Dcxx11_tensor_reverse.cpp30 Tensor<float, 4, DataLayout> reversed_tensor; in test_simple_reverse() local
31 reversed_tensor = tensor.reverse(dim_rev); in test_simple_reverse()
33 VERIFY_IS_EQUAL(reversed_tensor.dimension(0), 2); in test_simple_reverse()
34 VERIFY_IS_EQUAL(reversed_tensor.dimension(1), 3); in test_simple_reverse()
35 VERIFY_IS_EQUAL(reversed_tensor.dimension(2), 5); in test_simple_reverse()
36 VERIFY_IS_EQUAL(reversed_tensor.dimension(3), 7); in test_simple_reverse()
42 VERIFY_IS_EQUAL(tensor(i,j,k,l), reversed_tensor(i,2-j,4-k,l)); in test_simple_reverse()
53 reversed_tensor = tensor.reverse(dim_rev); in test_simple_reverse()
55 VERIFY_IS_EQUAL(reversed_tensor.dimension(0), 2); in test_simple_reverse()
56 VERIFY_IS_EQUAL(reversed_tensor.dimension(1), 3); in test_simple_reverse()
[all …]