Jeremy Johnson | 77fc614 | 2023-09-04 17:04:21 +0100 | [diff] [blame] | 1 | { |
| 2 | "$comment": "Copyright (c) 2023, ARM Limited.", |
| 3 | "$comment": "SPDX-License-Identifier: Apache-2.0", |
| 4 | "$id": "compliance-config.schema.json", |
| 5 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 6 | "title": "compliance-config", |
| 7 | "description": "Compliance configuration for verifying TOSA tensor data outputs from a test", |
| 8 | "type": "object", |
| 9 | "properties": { |
| 10 | "version": { |
| 11 | "description": "version string X.Y of this config data", |
| 12 | "type": "string" |
| 13 | }, |
| 14 | "tensors": { |
| 15 | "type": "object", |
| 16 | "description": "dictionary of output tensors - keys are the tosa network names", |
| 17 | "patternProperties": |
| 18 | { |
| 19 | "^.*$": |
| 20 | { |
| 21 | "description": "per named tensor config for compliance checking", |
| 22 | "type": "object", |
| 23 | "properties": { |
| 24 | "mode": { |
| 25 | "description": "verifier mode EXACT, DOT_PRODUCT, ULP, REDUCE_PRODUCT, or FP_SPECIAL", |
| 26 | "type": "string" |
| 27 | }, |
Jeremy Johnson | bb0935f | 2023-09-14 16:43:48 +0100 | [diff] [blame] | 28 | "data_type": { |
| 29 | "description": "tensor data type, such as: BOOL, INT16, FP32", |
| 30 | "type": "string" |
| 31 | }, |
Jeremy Johnson | 77fc614 | 2023-09-04 17:04:21 +0100 | [diff] [blame] | 32 | "ulp_info": { |
| 33 | "description": "info required for the ULP mode", |
| 34 | "type": "object", |
| 35 | "properties": |
| 36 | { |
| 37 | "ulp": { |
Jeremy Johnson | a4d907e | 2023-10-26 13:53:14 +0100 | [diff] [blame] | 38 | "description": "ulp range limit - positive float", |
| 39 | "type": "number", |
Jeremy Johnson | bb0935f | 2023-09-14 16:43:48 +0100 | [diff] [blame] | 40 | "minimum": 0 |
Jeremy Johnson | 77fc614 | 2023-09-04 17:04:21 +0100 | [diff] [blame] | 41 | } |
| 42 | }, |
| 43 | "required": [ "ulp" ] |
| 44 | }, |
| 45 | "dot_product_info": { |
| 46 | "description": "info required for the DOT_PRODUCT mode", |
| 47 | "type": "object", |
| 48 | "properties": |
| 49 | { |
| 50 | "s": { |
| 51 | "description": "test set 0 to 5 or -1 for other data", |
| 52 | "type": "integer" |
| 53 | }, |
| 54 | "ks": { |
| 55 | "description": "kernel size for this dot product operation", |
| 56 | "type": "integer" |
Jeremy Johnson | 77fc614 | 2023-09-04 17:04:21 +0100 | [diff] [blame] | 57 | } |
| 58 | }, |
| 59 | "additionalProperties": false, |
| 60 | "required": [ |
| 61 | "s", |
Jeremy Johnson | bb0935f | 2023-09-14 16:43:48 +0100 | [diff] [blame] | 62 | "ks" |
Jeremy Johnson | 77fc614 | 2023-09-04 17:04:21 +0100 | [diff] [blame] | 63 | ] |
| 64 | } |
| 65 | }, |
| 66 | "additionalProperties": false, |
| 67 | "required": [ |
Jeremy Johnson | bb0935f | 2023-09-14 16:43:48 +0100 | [diff] [blame] | 68 | "mode", |
| 69 | "data_type" |
Jeremy Johnson | 77fc614 | 2023-09-04 17:04:21 +0100 | [diff] [blame] | 70 | ] |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | }, |
| 75 | "additionalProperties": false, |
| 76 | "required": [ |
| 77 | "version", |
| 78 | "tensors" |
| 79 | ] |
| 80 | } |