Skip to content

Commit

Permalink
Fix wrong indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
bytesnake committed Apr 3, 2024
1 parent 208d5cc commit ea0f204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enzyme/benchmarks/ReverseMode/lstm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fn lstm_predict(
i += 2 * b;
}

let xp = &s[i..];
let xp = &s[i-2*b..];

for i in 0..b {
x2[i] = xp[i] * w2[b + i] + w2[2 * b + i];
Expand Down

0 comments on commit ea0f204

Please sign in to comment.