Lines Matching refs:twod_patch
78 Tensor<float, 5, DataLayout> twod_patch;
79 twod_patch = tensor.extract_patches(patch_dims);
82 VERIFY_IS_EQUAL(twod_patch.dimension(0), 1);
83 VERIFY_IS_EQUAL(twod_patch.dimension(1), 2);
84 VERIFY_IS_EQUAL(twod_patch.dimension(2), 2);
85 VERIFY_IS_EQUAL(twod_patch.dimension(3), 1);
86 VERIFY_IS_EQUAL(twod_patch.dimension(4), 2*2*4*7);
88 VERIFY_IS_EQUAL(twod_patch.dimension(0), 2*2*4*7);
89 VERIFY_IS_EQUAL(twod_patch.dimension(1), 1);
90 VERIFY_IS_EQUAL(twod_patch.dimension(2), 2);
91 VERIFY_IS_EQUAL(twod_patch.dimension(3), 2);
92 VERIFY_IS_EQUAL(twod_patch.dimension(4), 1);
108 VERIFY_IS_EQUAL(tensor(i,j+x,k+y,l), twod_patch(0,x,y,0,patch_loc));
110 VERIFY_IS_EQUAL(tensor(i,j+x,k+y,l), twod_patch(patch_loc,0,x,y,0));