diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-09-14 16:43:48 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-10-02 11:33:03 +0100 |
commit | bb0935f868a5ab09403cf3628848655b06ac1dec (patch) | |
tree | 259a157d7c32a6134cbc83d2a2961c7f2e3529fa /verif/tests | |
parent | 62737b15a30e431dcefaaf28001f304e46598fc6 (diff) | |
download | reference_model-bb0935f868a5ab09403cf3628848655b06ac1dec.tar.gz |
Update verifier library data-type support
Make compliance meta-data data-type required for all.
Add data-type checking for all verifier modes.
Add initial enum support for new ROUND compliance mode.
Improve print out information from library.
Use numpy ctypes.data_as to get f16 support compared to ctypes_lib.
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Ie983ba4ea958a88556f30c09b3ebc19cd9ec96b7
Diffstat (limited to 'verif/tests')
-rw-r--r-- | verif/tests/test_schemavalidation.py | 6 | ||||
-rw-r--r-- | verif/tests/test_tosa_verifier.py | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/verif/tests/test_schemavalidation.py b/verif/tests/test_schemavalidation.py index 1ecd3ee..664e3a4 100644 --- a/verif/tests/test_schemavalidation.py +++ b/verif/tests/test_schemavalidation.py @@ -72,11 +72,7 @@ def test_schemavalidation_full_unexpected(): def test_schemavalidation_compliance_minimal(): json = { "version": "v", - "tensors": { - "output": { - "mode": "mode", - } - }, + "tensors": {"output": {"mode": "mode", "data_type": "type"}}, } sv = sch.TestDescSchemaValidator() diff --git a/verif/tests/test_tosa_verifier.py b/verif/tests/test_tosa_verifier.py index 996939c..864fa9c 100644 --- a/verif/tests/test_tosa_verifier.py +++ b/verif/tests/test_tosa_verifier.py @@ -40,7 +40,8 @@ JSON_COMPLIANCE_DOT_PRODUCT = { "tensors": { "output1": { "mode": "DOT_PRODUCT", - "dot_product_info": {"ks": 1000, "s": 0, "data_type": "FP32"}, + "data_type": "FP32", + "dot_product_info": {"ks": 1000, "s": 0}, } }, } |