Skip to content

Commit

Permalink
Update src/lstm/functions.h
Browse files Browse the repository at this point in the history
Conform to style.
  • Loading branch information
heshpdx authored Sep 23, 2024
1 parent 7852c79 commit a2a85b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lstm/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ inline void SoftmaxInPlace(int n, T *inout) {
inout[i] = prob;
}
if (prob_total > 0) {
T inv_prob_total = 1.0/prob_total;
T inv_prob_total = 1 / prob_total;
for (int i = 0; i < n; i++) {
inout[i] *= inv_prob_total;
}
Expand Down

0 comments on commit a2a85b1

Please sign in to comment.