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 if (value == "grow") {
246 return GraphCapacityMode::Grow;
247 }
248 if (value == "double") {
249 return GraphCapacityMode::Double;
250 }
251 if (value == "unsupported") {
252 return GraphCapacityMode::Unsupported;
253 }
254 throw std::runtime_error("unsupported graph capacity mode: " + value);
255}
256
257GraphCapacityMode resolve_graph_capacity_mode(
258 const SessionOptions & options,
259 GraphCapacityMode default_mode) {
260 return resolve_graph_capacity_mode(options, default_mode, {"graph_capacity_mode"});
261}
262
263GraphCapacityMode resolve_graph_capacity_mode(
264 const SessionOptions & options,
265 GraphCapacityMode default_mode,
266 std::initializer_list<const char *> keys) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected