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

Function first_branch_has_eos

src/models/heartmula/generator.cpp:351–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351bool first_branch_has_eos(const std::vector<int32_t> & frame, const HeartMuLaAssets & assets) {
352 for (int64_t q = 0; q < assets.mula_config.audio_num_codebooks; ++q) {
353 if (frame[static_cast<size_t>(q)] >= assets.generation_config.audio_eos_id) {
354 return true;
355 }
356 }
357 return false;
358}
359
360} // namespace
361

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected