| 140 | } |
| 141 | } |
| 142 | } |
| 143 | config.merged_band_counts.assign( |
| 144 | static_cast<size_t>(config.stft_freq_bins * config.channels), 1); |
| 145 | } |
| 146 | |
| 147 | RoformerArchitectureConfig parse_config( |
| 148 | const json::Value & parsed, |
| 149 | std::string_view family) { |
| 150 | if (!parsed.is_object()) { |
| 151 | throw std::runtime_error(std::string(family) + " config root must be an object"); |
| 152 | } |
| 153 | validate_config(parsed, family); |
| 154 | RoformerArchitectureConfig config; |
| 155 | config.family = std::string(family); |
no test coverage detected