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

Method prepare

src/models/sortformer_diar/session.cpp:186–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
194void 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()

Callers

nothing calls this directly

Calls 1

ensure_preparedMethod · 0.80

Tested by

no test coverage detected