cxx11_tensor_image_patch.cpp | 120 Tensor<float, 5> twod_patch; local 121 twod_patch = tensor.extract_image_patches(2, 2); 122 VERIFY_IS_EQUAL(twod_patch.dimension(0), 2); 123 VERIFY_IS_EQUAL(twod_patch.dimension(1), 2); 124 VERIFY_IS_EQUAL(twod_patch.dimension(2), 2); 125 VERIFY_IS_EQUAL(twod_patch.dimension(3), 3*5); 126 VERIFY_IS_EQUAL(twod_patch.dimension(4), 7); 158 if (twod_patch(d, r, c, patchId, b) != expected) { 161 VERIFY_IS_EQUAL(twod_patch(d, r, c, patchId, b), expected); 501 Tensor<float, 4> twod_patch; local [all...] |