| 184 | std::vector<int64_t> capacities; |
| 185 | capacities.reserve(inference_graphs_.size()); |
| 186 | for (const auto & [capacity, graph] : inference_graphs_) { |
| 187 | if (graph) { |
| 188 | capacities.push_back(capacity); |
| 189 | } |
| 190 | } |
| 191 | return capacities; |
| 192 | } |
| 193 | |
| 194 | void SortformerDiarSession::prepare_graph_capacity(int64_t capacity) { |
| 195 | if (capacity <= 0) { |
| 196 | throw std::runtime_error("Sortformer graph capacity must be positive"); |
| 197 | } |
| 198 | if (inference_graphs_.find(capacity) != inference_graphs_.end()) { |
| 199 | return; |
| 200 | } |
| 201 | const SortformerFixedContextContract context = |
| 202 | capacity == base_graph_capacity_samples() |
nothing calls this directly
no test coverage detected