Component Introduction
Quick Start
API Reference
Convert an image-like tensor into a sequence of flattened patches.
label (Union[int, float]) – output dimension for each position.
patch_size (int, optional) – The patch size of image. Default: 16.
16
Numpy.array, the array with new shape of (H, W).
(H, W)