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 const auto bytes = bf16_bytes(values);
286 set_tensor_bytes(tensor, bytes.data(), bytes.size(), name);
287 return;
288 }
289 const auto bytes = quantize_f32_rows(name, values, shape, type);
290 set_tensor_bytes(tensor, bytes.data(), bytes.size(), name);
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