fromValue static method

ggml_op_pool fromValue(
  1. int value
)

Implementation

static ggml_op_pool fromValue(int value) => switch (value) {
      0 => GGML_OP_POOL_MAX,
      1 => GGML_OP_POOL_AVG,
      2 => GGML_OP_POOL_COUNT,
      _ => throw ArgumentError("Unknown value for ggml_op_pool: $value"),
    };