aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/verify/verifiers.h
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2024-01-03 10:54:12 +0000
committerEric Kunze <eric.kunze@arm.com>2024-01-08 21:40:41 +0000
commitd80ea5e11e5f92e0f7c08afeba74cb7d1719987b (patch)
tree25589c928c95de3de8bbad96dc07432bd9d289f9 /reference_model/src/verify/verifiers.h
parent2936f13d0e26c394333495ce909740eaf58a45cc (diff)
downloadreference_model-d80ea5e11e5f92e0f7c08afeba74cb7d1719987b.tar.gz
Main Conformance: Re-adjust TANH compliance check
Add lower bound to ABS ERROR checks to allow for cancellation of small values in error bounds checking. Re-adjust the error bounds multiplier to match the specification. Fix up naming of verify library info structs. Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I3e178c3d7d59fef9c3696178646b23ed2a3ffc61
Diffstat (limited to 'reference_model/src/verify/verifiers.h')
-rw-r--r--reference_model/src/verify/verifiers.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/reference_model/src/verify/verifiers.h b/reference_model/src/verify/verifiers.h
index f2590cb..152cd6a 100644
--- a/reference_model/src/verify/verifiers.h
+++ b/reference_model/src/verify/verifiers.h
@@ -1,5 +1,5 @@
-// Copyright (c) 2023, ARM Limited.
+// Copyright (c) 2023-2024, ARM Limited.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -55,19 +55,20 @@ bool verifyReduceProduct(const CTensor* referenceTensor, const CTensor* implemen
///
/// \param referenceTensor Reference tensor
/// \param implementationTensor Implementation resulting tensor
-/// \param ulp The ULP tolerence for the comparison of the two tensors
+/// \param ulpInfo The ULP tolerence info for the comparison of the two tensors
///
/// \return True if compliant else false
-bool verifyULP(const CTensor* referenceTensor, const CTensor* implementationTensor, const UlpInfo& ulpInfo);
+bool verifyULP(const CTensor* referenceTensor, const CTensor* implementationTensor, const UlpVerifyInfo& ulpInfo);
/// \brief Perform abs-error based verification
///
/// \param ref Reference tensor
/// \param refBnd Reference bounds tensor (according to op)
/// \param imp Implementation resulting tensor
+/// \param aeInfo Abs-error verification meta-data
///
/// \return True if compliant else false
-bool verifyAbsError(const CTensor* ref, const CTensor* refBnd, const CTensor* imp);
+bool verifyAbsError(const CTensor* ref, const CTensor* refBnd, const CTensor* imp, const AbsErrorVerifyInfo& aeInfo);
}; // namespace TosaReference