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

Method require_f32

src/models/vibevoice/assets.cpp:292–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 throw std::runtime_error("VibeVoice F16 scalar byte size mismatch: " + name);
291 }
292 ggml_fp16_to_fp32_row(reinterpret_cast<const ggml_fp16_t *>(tensor.bytes.data()), &value, 1);
293 return value;
294 }
295 case assets::TensorStorageType::BF16: {
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);

Callers 15

load_snake_activationFunction · 0.45
load_weightsFunction · 0.45
load_wn_conv1dFunction · 0.45
load_wn_conv_transpose1dFunction · 0.45
load_snakeFunction · 0.45
load_sr_conditionFunction · 0.45
load_weightsFunction · 0.45
load_citrinet_weightsFunction · 0.45
load_detokenizer_weightsFunction · 0.45
load_diffusion_weightsFunction · 0.45
load_snake_exactFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected