Fixed Tensor documentation formatting.

This commit is contained in:
Alberto Luaces 2019-07-23 09:24:06 +00:00
parent 15f3d9d272
commit c694be1214

View File

@ -1742,6 +1742,7 @@ sizes:
2x2 image patches can be extracted and indexed using the following code:
*) 2D patch: ColMajor (patch indexed by second-to-last dimension)
Tensor<float, 5> twod_patch;
twod_patch = tensor.extract_image_patches<2, 2>();
// twod_patch.dimension(0) == 2
@ -1751,6 +1752,7 @@ sizes:
// twod_patch.dimension(4) == 7
*) 2D patch: RowMajor (patch indexed by the second dimension)
Tensor<float, 5, RowMajor> twod_patch_row_major;
twod_patch_row_major = tensor_row_major.extract_image_patches<2, 2>();
// twod_patch_row_major.dimension(0) == 7