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

Function ggml_vec_sum_f16_ggf

ggml.c:1538–1544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
1540 for (int i = 0; i < n; ++i) {
1541 sum += GGML_FP16_TO_FP32(x[i]);
1542 }
1543 *s = sum;
1544}
1545
1546inline static void ggml_vec_sum_i32_ggf(const int n, int64_t * s, const int32_t * x) {
1547 int64_t sum = 0;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected