ggml : cont

ggml-ci
This commit is contained in:
Georgi Gerganov 2024-02-22 18:53:40 +02:00
parent 8b5059c279
commit 0cff93277f
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -56,6 +56,8 @@ extern "C" {
#define GGML_COMPUTE_FP16_TO_FP32(x) ggml_compute_fp16_to_fp32(x)
#define GGML_COMPUTE_FP32_TO_FP16(x) ggml_compute_fp32_to_fp16(x)
#define GGML_FP16_TO_FP32(x) ggml_compute_fp16_to_fp32(x)
static inline float ggml_compute_fp16_to_fp32(ggml_fp16_t h) {
__fp16 tmp;
memcpy(&tmp, &h, sizeof(ggml_fp16_t));