Skip to content

selfAttention saveToFile

GitHub Action edited this page Jul 9, 2026 · 1 revision
void saveToFile(std::filesystem::path output)

Basic Info

Saves attention block to file.

Return Type

Returns void

Parameters

Parameter Type Use Optional
output std::filesystem::path Output file

Example

// Calling the saveToFile() function
std::filesystem::path output; // Fill with your filepath
selfAttention a(128);
a.saveToFile(output);

Clone this wiki locally