fromValue static method
Implementation
static ggml_log_level fromValue(int value) => switch (value) {
0 => GGML_LOG_LEVEL_NONE,
1 => GGML_LOG_LEVEL_DEBUG,
2 => GGML_LOG_LEVEL_INFO,
3 => GGML_LOG_LEVEL_WARN,
4 => GGML_LOG_LEVEL_ERROR,
5 => GGML_LOG_LEVEL_CONT,
_ => throw ArgumentError("Unknown value for ggml_log_level: $value"),
};