fromValue static method

ggml_log_level fromValue(
  1. int value
)

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"),
    };