From bc278c8a0ef48726dff11db5bcd525ee43947063 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Sun, 21 Apr 2024 14:18:00 -0700 Subject: [PATCH] Fix documentation --- ggml-impl.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/ggml-impl.h b/ggml-impl.h index 83c32c743..d85b152bf 100644 --- a/ggml-impl.h +++ b/ggml-impl.h @@ -18,7 +18,9 @@ #define MAX(a, b) ((a) > (b) ? (a) : (b)) /** - * Google Brain 16-bit floating point number. + * Converts brain16 to float32. + * + * The bfloat16 floating point format has the following structure: * * ┌sign * │ @@ -52,17 +54,8 @@ * │┌─┴─┐┌─┴──────┐ * 0b0000000000000000 IEEE binary16 * - * So be warned that converting between them, destroys several bits. - * * @see IEEE 754-2008 */ -struct ggml_bf16_s { - uint16_t bits; -}; - -/** - * Converts brain16 to float32. - */ static inline float ggml_compute_bf16_to_fp32(ggml_bf16_t h) { union { float f;