From bc9fab86b4493c855eaa736e84b1f98813c5f199 Mon Sep 17 00:00:00 2001 From: jatin Date: Mon, 22 Jan 2024 10:27:14 -0800 Subject: [PATCH] Update math_approx --- modules/math_approx | 2 +- src/processors/drive/neural_utils/RNNAccelerated.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/math_approx b/modules/math_approx index 07408e30..0c68d4d1 160000 --- a/modules/math_approx +++ b/modules/math_approx @@ -1 +1 @@ -Subproject commit 07408e302de1ad9cda6d1b114b5f2d2c9ce6d719 +Subproject commit 0c68d4d17242d707ba07fa7f1901692b7ed72d58 diff --git a/src/processors/drive/neural_utils/RNNAccelerated.cpp b/src/processors/drive/neural_utils/RNNAccelerated.cpp index 4bce81a1..ff520063 100644 --- a/src/processors/drive/neural_utils/RNNAccelerated.cpp +++ b/src/processors/drive/neural_utils/RNNAccelerated.cpp @@ -18,13 +18,13 @@ struct RNNMathsProvider template static T tanh (T x) { - return math_approx::tanh<9> (x); + return math_approx::tanh<7> (x); } template static T sigmoid (T x) { - return math_approx::sigmoid<9> (x); + return math_approx::sigmoid_exp<5, false> (x); } };