aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--reference_model/src/ops/ewise_binary.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/reference_model/src/ops/ewise_binary.cc b/reference_model/src/ops/ewise_binary.cc
index 22ace95..b513f9a 100644
--- a/reference_model/src/ops/ewise_binary.cc
+++ b/reference_model/src/ops/ewise_binary.cc
@@ -517,10 +517,10 @@ int OpPow<Rank, Dtype>::register_fcn()
case TOSA_REF_TYPE_FP64:
if (g_func_config.abs_mode)
{
- // ABS_ERROR bounds return (1+abs(log(abs(a))*b))
+ // ABS_ERROR bounds return 2*(1+abs(log(abs(a))*b))
this->fcn = [](InEigenType a, InEigenType b) -> OutEigenType {
OutEigenType c = log(a > (InEigenType)0 ? a : (-a)) * b;
- return 1.0 + (c > (OutEigenType)0 ? c : (-c));
+ return 2 * (1.0 + (c > (OutEigenType)0 ? c : (-c)));
};
}
else