Skip to content

Commit

Permalink
Update math_approx
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Jan 22, 2024
1 parent 24ec591 commit bc9fab8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/processors/drive/neural_utils/RNNAccelerated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ struct RNNMathsProvider
template <typename T>
static T tanh (T x)
{
return math_approx::tanh<9> (x);
return math_approx::tanh<7> (x);
}

template <typename T>
static T sigmoid (T x)
{
return math_approx::sigmoid<9> (x);
return math_approx::sigmoid_exp<5, false> (x);
}
};

Expand Down

0 comments on commit bc9fab8

Please sign in to comment.