Skip to content

Commit 858f9d1

Browse files
Balazs Raczcopybara-github
authored andcommitted
Avoid using Row() for unaligned storage.
PiperOrigin-RevId: 846158406
1 parent 6661d3a commit 858f9d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gemma/flash_attention.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ static void HWY_INLINE FlashAttentionTileStepAndApplySoftCap(
498498
hn::Store(new_max, df4, tmp_max);
499499
if constexpr (kNumQueries >= 1) {
500500
const VF new_max_0 = hn::Set(df, tmp_max[0]);
501-
x_0_p0 = hn::Exp(df, hn::Sub(x_0_p0 , new_max_0));
501+
x_0_p0 = hn::Exp(df, hn::Sub(x_0_p0, new_max_0));
502502
x_0_p1 = hn::Exp(df, hn::Sub(x_0_p1, new_max_0));
503503
}
504504
if constexpr (kNumQueries >= 2) {

0 commit comments

Comments
 (0)