aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/ops/ewise_unary.cc
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2024-04-11 16:21:54 +0100
committerEric Kunze <eric.kunze@arm.com>2024-04-18 15:34:50 +0000
commit1eb1455568e2a23971f2c1b7be1077a8c1494685 (patch)
tree7979b9e1eaf3e407ff493c7f4b51fcf127f6603c /reference_model/src/ops/ewise_unary.cc
parent8753f3aa944c87e779db2d2c4ba9d9df241b87b1 (diff)
downloadreference_model-1eb1455568e2a23971f2c1b7be1077a8c1494685.tar.gz
Update compliance verify checks
Cope with large error bounds with small reference values. Change how error bounds of NaN are avoided for ABS_ERRORs. Update SIN/COS compliance to latest spec and use input value as magnitude. Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I55aca59e0255e1cfd255b08edb845c3e33ca7eff
Diffstat (limited to 'reference_model/src/ops/ewise_unary.cc')
-rw-r--r--reference_model/src/ops/ewise_unary.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/reference_model/src/ops/ewise_unary.cc b/reference_model/src/ops/ewise_unary.cc
index 310a174..6818f8c 100644
--- a/reference_model/src/ops/ewise_unary.cc
+++ b/reference_model/src/ops/ewise_unary.cc
@@ -181,8 +181,8 @@ int OpCos<Rank, Dtype>::register_fcn()
case TOSA_REF_TYPE_FP64:
if (g_func_config.abs_mode)
{
- // ABS_ERROR bounds return 1.0
- this->fcn = [](InEigenType a) -> OutEigenType { return 1.0; };
+ // ABS_ERROR bounds return
+ this->fcn = [](InEigenType a) -> OutEigenType { return a; };
}
else
{
@@ -414,8 +414,8 @@ int OpSin<Rank, Dtype>::register_fcn()
case TOSA_REF_TYPE_FP64:
if (g_func_config.abs_mode)
{
- // ABS_ERROR bounds return 1.0
- this->fcn = [](InEigenType a) -> OutEigenType { return 1.0; };
+ // ABS_ERROR bounds return
+ this->fcn = [](InEigenType a) -> OutEigenType { return a; };
}
else
{