| 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) { |
| 579 | throw std::runtime_error("VibeVoice streaming cache slice is outside tensor bounds"); |
| 580 | } |
| 581 | return modules::SliceModule({2, input.shape.dims[2] - frames, frames}).build(ctx, input); |
| 582 | } |
| 583 | |
| 584 | core::TensorValue sconv1d_streaming( |
| 585 | core::ModuleBuildContext & ctx, |
no test coverage detected