Expand description
Linear embedding projection layer (dimensionality reduction or expansion).
ProjectionLayer wraps a weight matrix and bias vector together with an
optional activation function. It can reduce high-dimensional embeddings
to a smaller space (e.g. 768 → 128) or expand them to a larger space.
Structs§
- Projection
Layer - A linear projection layer:
output = activation(W·input + b). - Projection
Matrix - The weight matrix and bias for a linear projection.
Enums§
- Activation
Fn - Activation function applied element-wise to the projected output.
- Init
Method - Initialisation methods for the projection weights.