blob: 677a2a875d9526dce923af131a10b385a87743db [file] [log] [blame]
Jeremy Johnson77fc6142023-09-04 17:04:21 +01001 {
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 },
28 "ulp_info": {
29 "description": "info required for the ULP mode",
30 "type": "object",
31 "properties":
32 {
33 "ulp": {
34 "description": "ulp range limit - such as 1 or 0.5",
35 "type": "string"
36 }
37 },
38 "required": [ "ulp" ]
39 },
40 "dot_product_info": {
41 "description": "info required for the DOT_PRODUCT mode",
42 "type": "object",
43 "properties":
44 {
45 "s": {
46 "description": "test set 0 to 5 or -1 for other data",
47 "type": "integer"
48 },
49 "ks": {
50 "description": "kernel size for this dot product operation",
51 "type": "integer"
52 },
53 "data_type": {
54 "description": "tensor data type, such as: BOOL, INT16, FP32",
55 "type": "string"
56 }
57 },
58 "additionalProperties": false,
59 "required": [
60 "s",
61 "ks",
62 "data_type"
63 ]
64 }
65 },
66 "additionalProperties": false,
67 "required": [
68 "mode"
69 ]
70 }
71 }
72 }
73 },
74 "additionalProperties": false,
75 "required": [
76 "version",
77 "tensors"
78 ]
79}