Skip to content

Commit d8da1e3

Browse files
jan-wassenbergcopybara-github
authored andcommitted
fix type mismatch in dot, accidentally used float_t=double instead of float
PiperOrigin-RevId: 404547835
1 parent 79c080d commit d8da1e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hwy/contrib/dot/dot-inl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ struct Dot {
172172
// Won't be able to do a full vector load without padding => scalar loop.
173173
if (!kIsAtLeastOneVector && !kIsMultipleOfVector && !kIsPaddedToVector &&
174174
HWY_UNLIKELY(num_elements < N)) {
175-
float_t sum0 = 0.0f; // Only 2x unroll to avoid excessive code size for..
176-
float_t sum1 = 0.0f; // this unlikely(?) case.
175+
float sum0 = 0.0f; // Only 2x unroll to avoid excessive code size for..
176+
float sum1 = 0.0f; // this unlikely(?) case.
177177
for (; i + 2 <= num_elements; i += 2) {
178178
sum0 += F32FromBF16(pa[i + 0]) * F32FromBF16(pb[i + 0]);
179179
sum1 += F32FromBF16(pa[i + 1]) * F32FromBF16(pb[i + 1]);

0 commit comments

Comments
 (0)