mirror of https://github.com/google/gemma.cpp.git
Avoid using Row() for unaligned storage.
PiperOrigin-RevId: 846214605
This commit is contained in:
parent
6661d3a60c
commit
0ac55f71ed
|
|
@ -498,7 +498,7 @@ static void HWY_INLINE FlashAttentionTileStepAndApplySoftCap(
|
|||
hn::Store(new_max, df4, tmp_max);
|
||||
if constexpr (kNumQueries >= 1) {
|
||||
const VF new_max_0 = hn::Set(df, tmp_max[0]);
|
||||
x_0_p0 = hn::Exp(df, hn::Sub(x_0_p0 , new_max_0));
|
||||
x_0_p0 = hn::Exp(df, hn::Sub(x_0_p0, new_max_0));
|
||||
x_0_p1 = hn::Exp(df, hn::Sub(x_0_p1, new_max_0));
|
||||
}
|
||||
if constexpr (kNumQueries >= 2) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue