patch_denoise.gpu.dataloader.patchify_tensor#
- patch_denoise.gpu.dataloader.patchify_tensor(data, patch_shape, patch_overlap)[source]#
Transform a tensor into a collection of patches with specified shape and overlap.
- Parameters:
- Returns:
A view of the original tensor containing the extracted patches, with shape
(grid_patches, *patch_shape).- Return type:
torch.Tensor