From: Georgi Gerganov Date: Tue, 18 Oct 2022 16:48:34 +0000 (+0300) Subject: Add reference to FP16 repo X-Git-Tag: upstream/1.7.4~1940 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=19817711b4974007adae08a80d633a8359cc28b0;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp Add reference to FP16 repo --- diff --git a/ggml.c b/ggml.c index 4861f249..115e619b 100644 --- a/ggml.c +++ b/ggml.c @@ -75,6 +75,9 @@ ggml_fp16_t ggml_fp32_to_fp16(float x) { #include +// FP16 <-> FP32 +// ref: https://github.com/Maratyszcza/FP16 + static inline float fp32_from_bits(uint32_t w) { union { uint32_t as_bits;