Repository navigation
neuralNetwork layerNorm
GitHub Action edited this page Jul 9, 2026
·
1 revision
void layerNorm(std::vector<float> &x, size_t start, size_t end)Applies a layer norm to the inputted vector.
Returns void
| Parameter | Type | Use | Optional |
|---|---|---|---|
x |
std::vector<float> |
Input Vector | ❌ |
start |
size_t |
Index of start | ❌ |
end |
size_t |
Index of end | ❌ |
// Calling the layerNorm() function
neuralNetwork n({128, 512, 128});
n.layerNorm({0.012, 0.4373, -0.463, 0.8747}, 1, 3);- AIUsage
- Block
- Embedder
- Introduction
- Layer
- Model
- NeuralNetwork
- PositionalEncoding
- SelfAttention
- Tokenizer
- Utility