| 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 | |
| 257 | GraphCapacityMode 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 | |
| 263 | GraphCapacityMode resolve_graph_capacity_mode( |
| 264 | const SessionOptions & options, |
| 265 | GraphCapacityMode default_mode, |
| 266 | std::initializer_list<const char *> keys) { |
no outgoing calls
no test coverage detected