MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_vec_sum_f32_ggf

Function ggml_vec_sum_f32_ggf

ggml.c:1530–1536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1528}
1529
1530inline static void ggml_vec_sum_f32_ggf(const int n, ggml_float * s, const float * x) {
1531 ggml_float sum = 0.0;
1532 for (int i = 0; i < n; ++i) {
1533 sum += (ggml_float)x[i];
1534 }
1535 *s = sum;
1536}
1537
1538inline static void ggml_vec_sum_f16_ggf(const int n, float * s, const ggml_fp16_t * x) {
1539 float sum = 0.0f;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected