-
Notifications
You must be signed in to change notification settings - Fork 0
model saveToFile
GitHub Action edited this page Jul 9, 2026
·
1 revision
void saveToFile(std::pair<std::filesystem::path, std::vector<std::pair<std::pair<std::filesystem::path, std::vector<std::filesystem::path>>, std::filesystem::path>>> files)Saves the entire model to files.
Returns void
| Parameter | Type | Use | Optional |
|---|---|---|---|
files |
std::pair<std::filesystem::path, std::vector<std::pair<std::pair<std::filesystem::path, std::vector<std::filesystem::path>>, std::filesystem::path>>> |
Output files | ❌ |
// Calling the saveToFile() function
std::pair<std::filesystem::path, std::vector<std::pair<std::pair<std::filesystem::path, std::vector<std::filesystem::path>>, std::filesystem::path>>> files; // Fill with your filepath
model m();
m.saveToFile(files);- AIUsage
- Block
- Embedder
- Introduction
- Layer
- Model
- NeuralNetwork
- PositionalEncoding
- SelfAttention
- Tokenizer
- Utility