Repository navigation
selfAttention changeOne
GitHub Action edited this page Jul 9, 2026
·
1 revision
void changeOne(char mat, size_t row, size_t col, float d)| Parameter | Type | Use | Optional |
|---|---|---|---|
mat |
char |
Specifies attention matrix | ❌ |
row |
size_t |
Specifies row in matrix | ❌ |
col |
size_t |
Specifies column in matrix | ❌ |
d |
float |
Specifies change to value | ❌ |
Changes one individual parameter of the attention block
// Calling the changeOne() function
selfAttention a(128);
a.changeOne("q", 12, 103, 0.01465);- AIUsage
- Block
- Embedder
- Introduction
- Layer
- Model
- NeuralNetwork
- PositionalEncoding
- SelfAttention
- Tokenizer
- Utility