| 1477 | |
| 1478 | #ifdef GGML_SILU_FP16 |
| 1479 | inline static void ggml_vec_silu_f32(const int n, float * y, const float * x) { |
| 1480 | uint16_t t; |
| 1481 | for (int i = 0; i < n; ++i) { |
| 1482 | ggml_fp16_t fp16 = GGML_FP32_TO_FP16(x[i]); |
| 1483 | memcpy(&t, &fp16, sizeof(uint16_t)); |
| 1484 | y[i] = GGML_FP16_TO_FP32(ggml_table_silu_f16[t]); |
| 1485 | } |
| 1486 | } |
| 1487 | #else |
| 1488 | inline static void ggml_vec_silu_f32(const int n, float * y, const float * x) { |
| 1489 | for (int i = 0; i < n; ++i) { |
no test coverage detected