Repository navigation
utility softmax
GitHub Action edited this page Jul 9, 2026
·
1 revision
inline matrix softmax(matrix&& a)Applies a softmax to the passed matrix
Returns a utility::matrix
| Parameter | Type | Use | Optional |
|---|---|---|---|
a |
utility::matrix |
Matrix input | ❌ |
// Calling the softmax() function
utility::matrix a;
utility::matrix softmaxxing_questionmark_nah_macrohard = utility::softmax(a);- AIUsage
- Block
- Embedder
- Introduction
- Layer
- Model
- NeuralNetwork
- PositionalEncoding
- SelfAttention
- Tokenizer
- Utility