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

Function last_frames

src/models/vibevoice/tokenizer_audio.cpp:577–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577core::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
584core::TensorValue sconv1d_streaming(
585 core::ModuleBuildContext & ctx,

Callers 3

sconv1d_streamingFunction · 0.85

Calls 2

SliceModuleClass · 0.85
buildMethod · 0.45

Tested by

no test coverage detected