-
Notifications
You must be signed in to change notification settings - Fork 0
model forwardPass
GitHub Action edited this page Jul 9, 2026
·
1 revision
utility::matrix forwardPass(std::forward_list<int> tokens)Runs a full forward pass on the tokenized input. It returns the probability distribution for the next token.
Returns a utility::matrix
| Parameter | Type | Use | Optional |
|---|---|---|---|
tokens |
std::forward_list<int> |
List of Token | ❌ |
// Calling the forwardPass() function
model m();
utility::matrix dist = m.forwardPass({91, 42});- AIUsage
- Block
- Embedder
- Introduction
- Layer
- Model
- NeuralNetwork
- PositionalEncoding
- SelfAttention
- Tokenizer
- Utility