Expand description
Patch embedder: strided Conv2D producing [N_patches, embed_dim].
Structs§
- Patch
Embed - Patch embedder: converts a CHW image to a
[N_patches, embed_dim]token sequence via a strided Conv2D withstride = kernel_size = patch_size. - Patch
Embed Config - Configuration for the patch embedder.
- Patch
Embed Weights - Learnable weights for the patch embedder.
Functions§
- prepend_
cls - Prepend the CLS token to a
[n_patches, embed_dim]token sequence.