diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-12-11 11:14:31 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-12-12 16:23:04 +0000 |
commit | 598d74af92914ab3fb02b7f9c3a84aea09226818 (patch) | |
tree | 955ee7f999f1f9bd0555dcd85f694238ab88f2a2 /reference_model/src/ops/activation_funcs.cc | |
parent | 194fe314695bdfeba5b12b837b70f392db91995b (diff) | |
download | reference_model-598d74af92914ab3fb02b7f9c3a84aea09226818.tar.gz |
Main Conformance: Adjust TANH compliance value
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I35d14e3e9f80198c1da3d267f12bc7a9a055e698
Diffstat (limited to 'reference_model/src/ops/activation_funcs.cc')
-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 { |