diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-11-07 16:27:35 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-11-16 21:24:23 +0000 |
commit | 9a758384d1066ade713311940f3d15c860f90866 (patch) | |
tree | c25c9624b7c1d589d0648d6b3b4e6333f87a7712 /verif/runner | |
parent | 2d70ac4c02808609feb357488dcd080bd6fc5ba5 (diff) | |
download | reference_model-9a758384d1066ade713311940f3d15c860f90866.tar.gz |
Main Compliance testing support for EXP & POW
Added new ABS_ERROR mode to verify lib and ref model.
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Ifb78290675833d3df7df91a4d6cef336b02b64a4
Diffstat (limited to 'verif/runner')
-rw-r--r-- | verif/runner/tosa_test_runner.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/verif/runner/tosa_test_runner.py b/verif/runner/tosa_test_runner.py index 984b2d9..876fbdd 100644 --- a/verif/runner/tosa_test_runner.py +++ b/verif/runner/tosa_test_runner.py @@ -16,15 +16,15 @@ from json2numpy import json2numpy from runner.tosa_test_presets import TOSA_REFCOMPLIANCE_RUNNER -def isComplianceModeDotProduct(testDesc): - """Checks the test descriptor for DOT_PRODUCT compliance mode.""" +def isComplianceAbsModeNeeded(testDesc): + """Checks the test descriptor for DOT_PRODUCT/ABS_ERROR compliance mode.""" if ( "meta" in testDesc and "compliance" in testDesc["meta"] and "tensors" in testDesc["meta"]["compliance"] ): for _, t in testDesc["meta"]["compliance"]["tensors"].items(): - if "mode" in t and t["mode"] == "DOT_PRODUCT": + if "mode" in t and t["mode"] in ("DOT_PRODUCT", "ABS_ERROR"): return True return False @@ -195,7 +195,7 @@ class TosaTestRunner: conformanceFilePath = getRunnerResultFilePath( resultFilePath, TOSA_REFCOMPLIANCE_RUNNER ) - if isComplianceModeDotProduct(self.testDesc): + if isComplianceAbsModeNeeded(self.testDesc): conformanceBoundsPath = getBoundsResultFilePath( resultFilePath, TOSA_REFCOMPLIANCE_RUNNER ) @@ -255,7 +255,7 @@ class TosaTestRunner: getRunnerResultFilePath(resultFilePath, sutModule) ) if ( - isComplianceModeDotProduct(self.testDesc) + isComplianceAbsModeNeeded(self.testDesc) and sutModule == TOSA_REFCOMPLIANCE_RUNNER ): boundsFilePath = getBoundsResultFilePath(resultFilePath) |