-
Notifications
You must be signed in to change notification settings - Fork 0
layer layer
GitHub Action edited this page Jul 9, 2026
·
1 revision
layer(size_t n_in, size_t n_out)Initializes a new neural network layer with n_in input neurons and n_out output neurons.
layer(std::filesystem::path input)Reads a saved neural network layer.
A layer for a feed forward neural network.
| Variable | Type |
|---|---|
weights |
utility::matrix |
biases |
utility::matrix |
X |
utility::matrix |
Z |
utility::matrix |
generator |
std::default_random_engine |
initDist |
std::normal_distribution<float> |
// Initializing a layer
layer l("./bestlayerever.bin");- AIUsage
- Block
- Embedder
- Introduction
- Layer
- Model
- NeuralNetwork
- PositionalEncoding
- SelfAttention
- Tokenizer
- Utility