MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / write_safe

Function write_safe

bark.cpp:172–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171template <typename T>
172static void write_safe(std::ofstream& fout, T& dest) {
173 fout.write((char*)&dest, sizeof(T));
174}
175
176static void bark_print_statistics(gpt_model* model) {
177 printf("\n\n");

Callers 3

ggml_quantize_weightsFunction · 0.70
bark_model_quantizeFunction · 0.70

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected