From a2a85b12ae0b51a1f967503a18fea04f8341eb1b Mon Sep 17 00:00:00 2001 From: Mahesh Madhav <67384846+heshpdx@users.noreply.github.com> Date: Sun, 22 Sep 2024 22:34:37 -0700 Subject: [PATCH] Update src/lstm/functions.h Conform to style. --- src/lstm/functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lstm/functions.h b/src/lstm/functions.h index f67fed4b8a..2fd6f0c978 100644 --- a/src/lstm/functions.h +++ b/src/lstm/functions.h @@ -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; }