aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/ops/ewise_unary.cc
diff options
context:
space:
mode:
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
{