public
ViPosEmbedding
— parametric type
ViPosEmbedding(embedsize::Integer, npatches::Integer; init = (dims::Dims{2}) -> rand(Float32, dims))
Positional embedding layer used by many vision transformer-like models.
public
ViPosEmbedding
— parametric type
ViPosEmbedding(embedsize::Integer, npatches::Integer; init = (dims::Dims{2}) -> rand(Float32, dims))
Positional embedding layer used by many vision transformer-like models.