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

Function optional_bool_scalar

src/models/roformer/assets.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120 if (total_freqs != config.stft_freq_bins) {
121 throw std::runtime_error(
122 "bs_roformer freqs_per_bands sum mismatch: expected " +
123 std::to_string(config.stft_freq_bins) + ", got " +
124 std::to_string(total_freqs));
125 }
126
127 config.num_bands = static_cast<int>(freqs_per_band.size());
128 config.total_band_input_dim = 0;
129 config.band_input_dims.reserve(freqs_per_band.size());
130 config.merged_freq_indices.reserve(
131 static_cast<size_t>(config.stft_freq_bins * config.channels));
132 int64_t freq = 0;
133 for (const int64_t count : freqs_per_band) {

Callers 1

Calls 3

parse_bool_scalarFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected