diff options
-rw-r--r-- | reference_model/src/ops/activation_funcs.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reference_model/src/ops/activation_funcs.cc b/reference_model/src/ops/activation_funcs.cc index ce58d77..787055c 100644 --- a/reference_model/src/ops/activation_funcs.cc +++ b/reference_model/src/ops/activation_funcs.cc @@ -123,8 +123,8 @@ int OpTanh<Rank, Dtype>::register_fcn() case TOSA_REF_TYPE_FP64: if (g_func_config.abs_mode) { - // ABS_ERROR bounds return 2*(1+abs(a)) - this->fcn = [](InEigenType a) -> OutEigenType { return 2.0 * (1.0 + (a > (InEigenType)0 ? a : (-a))); }; + // ABS_ERROR bounds return 8*(1+abs(a)) + this->fcn = [](InEigenType a) -> OutEigenType { return 8.0 * (1.0 + (a > (InEigenType)0 ? a : (-a))); }; } else { |