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

Function ggml_vec_gelu_f16

ggml.c:1414–1419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1412}
1413
1414inline static void ggml_vec_gelu_f16(const int n, ggml_fp16_t * y, const ggml_fp16_t * x) {
1415 const uint16_t * i16 = (const uint16_t *) x;
1416 for (int i = 0; i < n; ++i) {
1417 y[i] = ggml_table_gelu_f16[i16[i]];
1418 }
1419}
1420
1421#ifdef GGML_GELU_FP16
1422inline static void ggml_vec_gelu_f32(const int n, float * y, const float * x) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected