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": "desc.schema.json", |
| 5 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 6 | "title": "desc", |
| 7 | "description": "Test description", |
| 8 | "type": "object", |
| 9 | "properties": { |
| 10 | "tosa_file": { |
| 11 | "description": "tosa flatbuffer file", |
| 12 | "type": "string" |
| 13 | }, |
| 14 | "ifm_name": { |
| 15 | "description": "list of input tensors", |
| 16 | "type": "array", |
| 17 | "items": { |
| 18 | "description": "tensor name", |
| 19 | "type": "string" |
| 20 | } |
| 21 | }, |
| 22 | "ifm_file": { |
| 23 | "description": "list of input files, one for each tensor in ifm_name", |
| 24 | "type": "array", |
| 25 | "items": { |
| 26 | "description": "file name", |
| 27 | "type": "string" |
| 28 | } |
| 29 | }, |
| 30 | "ofm_name": { |
| 31 | "description": "list of output tensors", |
| 32 | "type": "array", |
| 33 | "minItems": 1, |
| 34 | "items": { |
| 35 | "description": "tensor name", |
| 36 | "type": "string" |
| 37 | } |
| 38 | }, |
| 39 | "ofm_file": { |
| 40 | "description": "list of output files, one for each tensor in ofm_name", |
| 41 | "type": "array", |
| 42 | "minItems": 1, |
| 43 | "items": { |
| 44 | "description": "file name", |
| 45 | "type": "string" |
| 46 | } |
| 47 | }, |
| 48 | "expected_failure": { |
| 49 | "description": "if the test is expected to fail - used for test filtering", |
| 50 | "type": "boolean" |
| 51 | }, |
| 52 | "expected_failure_desc": { |
| 53 | "description": "summary of expected failure test", |
| 54 | "type": "string" |
| 55 | }, |
| 56 | "expected_return_code": { |
| 57 | "description": "DEPRECATED (unused): expected return code from ref-model", |
| 58 | "type": "integer" |
| 59 | }, |
| 60 | "expected_result_file": { |
| 61 | "description": "DEPRECATED: list of expected result files, one for each tensor in ofm_name", |
| 62 | "type": "array", |
| 63 | "minItems": 1, |
| 64 | "items": { |
| 65 | "description": "file name", |
| 66 | "type": "string" |
| 67 | } |
| 68 | }, |
| 69 | "profile": { |
| 70 | "description": "list of profiles this test is valid for", |
| 71 | "type": "array", |
| 72 | "minItems": 1, |
| 73 | "items": { |
| 74 | "description": "profile name - tosa_bi or tosa_mi", |
| 75 | "type": "string" |
| 76 | } |
| 77 | }, |
Jeremy Johnson | c63d0f6 | 2023-09-14 16:07:00 +0100 | [diff] [blame] | 78 | "tag": { |
Jeremy Johnson | 77fc614 | 2023-09-04 17:04:21 +0100 | [diff] [blame] | 79 | "description": "list of string tags that can be used for test filtering", |
| 80 | "type": "array", |
| 81 | "items": { |
| 82 | "description": "test tag for filtering", |
| 83 | "type": "string" |
| 84 | } |
| 85 | }, |
| 86 | "meta": { |
| 87 | "description": "meta-data for test libraries", |
| 88 | "type": "object", |
| 89 | "properties": |
| 90 | { |
| 91 | "data_gen": { |
| 92 | "description": "data generation meta-data", |
| 93 | "$ref": "datagen-config.schema.json" |
| 94 | }, |
| 95 | "compliance": { |
| 96 | "description": "compliance meta-data", |
| 97 | "$ref": "compliance-config.schema.json" |
| 98 | } |
| 99 | }, |
| 100 | "additionalProperties": false |
| 101 | } |
| 102 | }, |
| 103 | "additionalProperties": false, |
| 104 | "required": [ |
| 105 | "tosa_file", |
| 106 | "ifm_name", |
| 107 | "ifm_file", |
| 108 | "ofm_name", |
| 109 | "ofm_file" |
| 110 | ] |
| 111 | } |