Skip to content

Commit bc278c8

Browse files
committed
Fix documentation
1 parent ce0442d commit bc278c8

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

ggml-impl.h

+3-10
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
#define MAX(a, b) ((a) > (b) ? (a) : (b))
1919

2020
/**
21-
* Google Brain 16-bit floating point number.
21+
* Converts brain16 to float32.
22+
*
23+
* The bfloat16 floating point format has the following structure:
2224
*
2325
* ┌sign
2426
* │
@@ -52,17 +54,8 @@
5254
* │┌─┴─┐┌─┴──────┐
5355
* 0b0000000000000000 IEEE binary16
5456
*
55-
* So be warned that converting between them, destroys several bits.
56-
*
5757
* @see IEEE 754-2008
5858
*/
59-
struct ggml_bf16_s {
60-
uint16_t bits;
61-
};
62-
63-
/**
64-
* Converts brain16 to float32.
65-
*/
6659
static inline float ggml_compute_bf16_to_fp32(ggml_bf16_t h) {
6760
union {
6861
float f;

0 commit comments

Comments
 (0)