| 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 |
nothing calls this directly
no test coverage detected