Home
last modified time | relevance | path

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

/external/eigen/unsupported/test/
Dcxx11_tensor_patch.cpp78 Tensor<float, 5, DataLayout> twod_patch; in test_simple_patch() local
79 twod_patch = tensor.extract_patches(patch_dims); in test_simple_patch()
82 VERIFY_IS_EQUAL(twod_patch.dimension(0), 1); in test_simple_patch()
83 VERIFY_IS_EQUAL(twod_patch.dimension(1), 2); in test_simple_patch()
84 VERIFY_IS_EQUAL(twod_patch.dimension(2), 2); in test_simple_patch()
85 VERIFY_IS_EQUAL(twod_patch.dimension(3), 1); in test_simple_patch()
86 VERIFY_IS_EQUAL(twod_patch.dimension(4), 2*2*4*7); in test_simple_patch()
88 VERIFY_IS_EQUAL(twod_patch.dimension(0), 2*2*4*7); in test_simple_patch()
89 VERIFY_IS_EQUAL(twod_patch.dimension(1), 1); in test_simple_patch()
90 VERIFY_IS_EQUAL(twod_patch.dimension(2), 2); in test_simple_patch()
[all …]
Dcxx11_tensor_image_patch.cpp120 Tensor<float, 5> twod_patch; in test_simple_patch() local
121 twod_patch = tensor.extract_image_patches(2, 2); in test_simple_patch()
122 VERIFY_IS_EQUAL(twod_patch.dimension(0), 2); in test_simple_patch()
123 VERIFY_IS_EQUAL(twod_patch.dimension(1), 2); in test_simple_patch()
124 VERIFY_IS_EQUAL(twod_patch.dimension(2), 2); in test_simple_patch()
125 VERIFY_IS_EQUAL(twod_patch.dimension(3), 3*5); in test_simple_patch()
126 VERIFY_IS_EQUAL(twod_patch.dimension(4), 7); in test_simple_patch()
158 if (twod_patch(d, r, c, patchId, b) != expected) { in test_simple_patch()
161 VERIFY_IS_EQUAL(twod_patch(d, r, c, patchId, b), expected); in test_simple_patch()
501 Tensor<float, 4> twod_patch; in test_patch_no_extra_dim() local
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DREADME.md1685 Tensor<float, 5> twod_patch;
1686 twod_patch = tensor.extract_image_patches<2, 2>();
1687 // twod_patch.dimension(0) == 2
1688 // twod_patch.dimension(1) == 2
1689 // twod_patch.dimension(2) == 2
1690 // twod_patch.dimension(3) == 3*5
1691 // twod_patch.dimension(4) == 7