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

Function decoder_graph_latents

src/models/stable_audio/same_autoencoder.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47int64_t decoder_graph_latents(const StableAudioConfig & config, int64_t latent_tokens, bool chunked) {
48 if (chunked && latent_tokens > kSameChunkLatents) {
49 return kSameChunkLatents;
50 }
51 if (!config.medium_architecture && config.same_chunk_midpoint_shift) {
52 return round_up_to_multiple(latent_tokens, config.pretransform_encoder_chunk_size / config.same_strides.back());
53 }
54 return latent_tokens;
55}
56
57struct GgmlContextDeleter {
58 void operator()(ggml_context * ctx) const noexcept {

Callers 2

prepare_decodeMethod · 0.85
decodeMethod · 0.85

Calls 2

is_mediumMethod · 0.80
round_up_to_multipleFunction · 0.70

Tested by

no test coverage detected