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

Function parse_graph_capacity_mode

src/framework/runtime/session.cpp:246–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246GraphCapacityMode parse_graph_capacity_mode(const std::string & value) {
247 if (value == "fixed") {
248 return GraphCapacityMode::Fixed;
249 }
250 if (value == "tiered") {
251 return GraphCapacityMode::Tiered;
252 }
253 if (value == "grow") {
254 return GraphCapacityMode::Grow;
255 }
256 if (value == "double") {
257 return GraphCapacityMode::Double;
258 }
259 if (value == "unsupported") {
260 return GraphCapacityMode::Unsupported;
261 }
262 throw std::runtime_error("unsupported graph capacity mode: " + value);
263}
264
265GraphCapacityMode resolve_graph_capacity_mode(
266 const SessionOptions & options,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected