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 /scripts | |
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 'scripts')
-rw-r--r-- | scripts/schemavalidation/compliance-config.schema.json | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/scripts/schemavalidation/compliance-config.schema.json b/scripts/schemavalidation/compliance-config.schema.json index 677a2a8..570c88f 100644 --- a/scripts/schemavalidation/compliance-config.schema.json +++ b/scripts/schemavalidation/compliance-config.schema.json @@ -25,14 +25,19 @@ "description": "verifier mode EXACT, DOT_PRODUCT, ULP, REDUCE_PRODUCT, or FP_SPECIAL", "type": "string" }, + "data_type": { + "description": "tensor data type, such as: BOOL, INT16, FP32", + "type": "string" + }, "ulp_info": { "description": "info required for the ULP mode", "type": "object", "properties": { "ulp": { - "description": "ulp range limit - such as 1 or 0.5", - "type": "string" + "description": "ulp range limit - positive number", + "type": "integer", + "minimum": 0 } }, "required": [ "ulp" ] @@ -49,23 +54,19 @@ "ks": { "description": "kernel size for this dot product operation", "type": "integer" - }, - "data_type": { - "description": "tensor data type, such as: BOOL, INT16, FP32", - "type": "string" } }, "additionalProperties": false, "required": [ "s", - "ks", - "data_type" + "ks" ] } }, "additionalProperties": false, "required": [ - "mode" + "mode", + "data_type" ] } } |