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

Function require_smallest_fitting_capacity

src/framework/runtime/session.cpp:287–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 }
286 if (value == "tiered") {
287 return GraphCapacityMode::Tiered;
288 }
289 if (value == "grow") {
290 return GraphCapacityMode::Grow;
291 }
292 if (value == "double") {
293 return GraphCapacityMode::Double;
294 }
295 if (value == "unsupported") {
296 return GraphCapacityMode::Unsupported;
297 }
298 throw std::runtime_error("unsupported graph capacity mode: " + value);
299}
300
301GraphCapacityMode resolve_graph_capacity_mode(
302 const SessionOptions & options,
303 GraphCapacityMode default_mode) {
304 return resolve_graph_capacity_mode(options, default_mode, {"graph_capacity_mode"});

Callers 1

Calls 3

emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected