fromValue static method
Implementation
static ggml_sched_priority fromValue(int value) => switch (value) {
0 => GGML_SCHED_PRIO_NORMAL,
1 => GGML_SCHED_PRIO_MEDIUM,
2 => GGML_SCHED_PRIO_HIGH,
3 => GGML_SCHED_PRIO_REALTIME,
_ =>
throw ArgumentError("Unknown value for ggml_sched_priority: $value"),
};