Skip to content

Commit ad462e1

Browse files
Djip007ggerganov
andauthored
Update ggml/src/ggml-fp8.cpp
Oups. Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
1 parent fe46ff1 commit ad462e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggml/src/ggml-fp8.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct FP8 {
3636
#ifdef GGML_USE_OPENMP_SIMD
3737
#pragma omp declare simd
3838
#endif
39-
void operator=(float value) {
39+
FP8& operator=(float value) {
4040
union {
4141
float f;
4242
uint32_t bits;
@@ -55,6 +55,7 @@ struct FP8 {
5555
in.bits += 1<<(22-M()); // for rounding
5656
bits |= (in.bits >> (23-M())) & 0x7F;
5757
}
58+
return *this;
5859
}
5960

6061
#ifdef GGML_USE_OPENMP_SIMD

0 commit comments

Comments
 (0)