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