From 598d74af92914ab3fb02b7f9c3a84aea09226818 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Mon, 11 Dec 2023 11:14:31 +0000 Subject: Main Conformance: Adjust TANH compliance value Signed-off-by: Jeremy Johnson Change-Id: I35d14e3e9f80198c1da3d267f12bc7a9a055e698 --- reference_model/src/ops/activation_funcs.cc | 4 ++-- 1 file 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::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 { -- cgit v1.2.1