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

Function checked_double_capacity_request

src/framework/runtime/session.cpp:321–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321namespace {
322
323int64_t require_smallest_fitting_capacity(
324 const std::vector<int64_t> & capacities,
325 int64_t request_size) {
326 if (request_size <= 0) {
327 throw std::runtime_error("graph capacity request size must be positive");
328 }
329 if (capacities.empty()) {
330 throw std::runtime_error("graph capacity list must not be empty");
331 }
332 auto it = std::lower_bound(capacities.begin(), capacities.end(), request_size);

Callers 2

ensure_preparedMethod · 0.85

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected