| 1412 | } |
| 1413 | |
| 1414 | inline 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 |
| 1422 | inline static void ggml_vec_gelu_f32(const int n, float * y, const float * x) { |
no outgoing calls
no test coverage detected