MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / SafeTensorSource

Method SafeTensorSource

src/framework/assets/tensor_source.cpp:287–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285
286 const size_t total = std::accumulate(written.begin(), written.end(), size_t{0});
287 if (total != bytes.size()) {
288 throw std::runtime_error("quantized tensor byte size mismatch: " + std::string(name));
289 }
290 return bytes;
291}
292

Callers

nothing calls this directly

Calls 2

load_safetensors_indexFunction · 0.85
read_binary_blobFunction · 0.85

Tested by

no test coverage detected