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

Method optional_f32

src/models/vibevoice/assets.cpp:298–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296 if (tensor.bytes.size() != sizeof(ggml_bf16_t)) {
297 throw std::runtime_error("VibeVoice BF16 scalar byte size mismatch: " + name);
298 }
299 ggml_bf16_to_fp32_row(reinterpret_cast<const ggml_bf16_t *>(tensor.bytes.data()), &value, 1);
300 return value;
301 }
302 default:
303 throw std::runtime_error("VibeVoice scalar tensor dtype is not floating point: " + name);
304 }
305}
306
307} // namespace
308

Callers

nothing calls this directly

Calls 1

require_f32Function · 0.85

Tested by

no test coverage detected