| 280 | float value = 0.0F; |
| 281 | switch (storage_type) { |
| 282 | case assets::TensorStorageType::F32: |
| 283 | if (tensor.bytes.size() != sizeof(float)) { |
| 284 | throw std::runtime_error("VibeVoice F32 scalar byte size mismatch: " + name); |
| 285 | } |
| 286 | std::memcpy(&value, tensor.bytes.data(), sizeof(value)); |
| 287 | return value; |
| 288 | case assets::TensorStorageType::F16: { |
| 289 | if (tensor.bytes.size() != sizeof(ggml_fp16_t)) { |
no outgoing calls
no test coverage detected