| 566 | } |
| 567 | |
| 568 | void add_streaming_cache_output( |
| 569 | core::ModuleBuildContext & ctx, |
| 570 | VibeVoiceStreamingBuildState & state, |
| 571 | const core::TensorValue & cache) { |
| 572 | auto contiguous = core::ensure_backend_addressable_layout(ctx, cache); |
| 573 | ggml_set_output(contiguous.tensor); |
| 574 | state.cache_outputs.push_back(contiguous.tensor); |
| 575 | } |
| 576 | |
| 577 | core::TensorValue last_frames(core::ModuleBuildContext & ctx, const core::TensorValue & input, int64_t frames) { |
| 578 | if (frames <= 0 || input.shape.dims[2] < frames) { |
no test coverage detected