fromValue static method

ggml_prec fromValue(
  1. int value
)

Implementation

static ggml_prec fromValue(int value) => switch (value) {
      0 => GGML_PREC_DEFAULT,
      1 => GGML_PREC_F32,
      _ => throw ArgumentError("Unknown value for ggml_prec: $value"),
    };