cxx11_tensor_image_patch.cpp | 20 Tensor<float, 4, RowMajor> tensor_row_major = tensor.swap_layout(); local 21 VERIFY_IS_EQUAL(tensor.dimension(0), tensor_row_major.dimension(3)); 22 VERIFY_IS_EQUAL(tensor.dimension(1), tensor_row_major.dimension(2)); 23 VERIFY_IS_EQUAL(tensor.dimension(2), tensor_row_major.dimension(1)); 24 VERIFY_IS_EQUAL(tensor.dimension(3), tensor_row_major.dimension(0)); 37 single_pixel_patch_row_major = tensor_row_major.extract_image_patches(1, 1); 53 if (tensor_row_major.data()[i] != single_pixel_patch_row_major.data()[i]) { 59 tensor_row_major.data()[i]); 60 VERIFY_IS_EQUAL(tensor.data()[i], tensor_row_major.data()[i]); 76 entire_image_patch_row_major = tensor_row_major.extract_image_patches(3, 5) 206 Tensor<float, 4, RowMajor> tensor_row_major = tensor.swap_layout(); local 279 Tensor<float, 4, RowMajor> tensor_row_major = tensor.swap_layout(); local 355 Tensor<float, 4, RowMajor> tensor_row_major = tensor.swap_layout(); local 412 Tensor<float, 3, RowMajor> tensor_row_major = tensor.swap_layout(); local [all...] |