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

Function require_prefix

src/models/stable_audio/assets.cpp:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 config.same_sliding_window = json::optional_i64_array(encoder_config, "sliding_window");
56 config.same_differential = json::optional_bool(encoder_config, "differential", true);
57 if (config.same_differential != json::optional_bool(decoder_config, "differential", config.same_differential)) {
58 throw std::runtime_error("Stable Audio SAME encoder/decoder differential settings must match");
59 }
60 config.same_variable_stride = json::optional_bool(encoder_config, "variable_stride", false);
61 if (config.same_variable_stride != json::optional_bool(decoder_config, "variable_stride", config.same_variable_stride)) {
62 throw std::runtime_error("Stable Audio SAME encoder/decoder variable_stride settings must match");
63 }
64 config.same_encoder_conv_mapping = json::optional_bool(encoder_config, "conv_mapping", false);

Callers 3

validate_model_weightsFunction · 0.85
validate_t5_weightsFunction · 0.85
validate_t5_base_weightsFunction · 0.85

Calls 2

has_prefixFunction · 0.85
stringFunction · 0.50

Tested by

no test coverage detected