-
Notifications
You must be signed in to change notification settings - Fork 0
block saveToFile
GitHub Action edited this page Jul 9, 2026
·
1 revision
void saveToFile(std::pair<std::pair<std::filesystem::path, std::vector<std::filesystem::path>>, std::filesystem::path> output)Saves parameters to files.
Returns void
| Parameter | Type | Use | Optional |
|---|---|---|---|
output |
std::pair<std::pair<std::filesystem::path, std::vector<std::filesystem::path>>, std::filesystem::path> |
Output files | ❌ |
output.first.first is the dimensions of the network, output.first.second is a vector of each file for each layer of the network, and output.second is the file for the self attention block. |
// Calling the saveToFile() function
std::pair<std::pair<std::filesystem::path, std::vector<std::filesystem::path>>, std::filesystem::path> output; // Fill with your filepaths
block b({128, 512, 128}, 128);
b.saveToFile(output);- AIUsage
- Block
- Embedder
- Introduction
- Layer
- Model
- NeuralNetwork
- PositionalEncoding
- SelfAttention
- Tokenizer
- Utility