diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 12:50:30 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 12:50:30 +0100 |
commit | 06f9df4678a5e20fe6e877aff4032c23c1f4ab6d (patch) | |
tree | 1a87ddf0df8c32d540d728adf77995c9b7e281c3 /operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b | |
parent | 00d05b3831fa305a377fda5ad6d81c53964a4d13 (diff) | |
download | conformance_tests-06f9df4678a5e20fe6e877aff4032c23c1f4ab6d.tar.gz |
Updating SCATTER_GATHER tests for FP16 and accumulator types
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Ia6ba5aee8960678bda43c5218e9bd15d67bc018a
Diffstat (limited to 'operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b')
4 files changed, 377 insertions, 0 deletions
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/desc.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/desc.json new file mode 100644 index 000000000..33c84b150 --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/desc.json @@ -0,0 +1,24 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "Input data type not supported for this operator", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/input-0.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/input-0.json new file mode 100644 index 000000000..a6f5d585e --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/input-0.json @@ -0,0 +1,151 @@ +{ + "type": "bool", + "data": [ + [ + [ + false, + false, + true, + true, + true, + false, + false, + true, + true, + false + ], + [ + true, + true, + false, + true, + false, + false, + true, + true, + false, + true + ], + [ + false, + true, + false, + true, + true, + true, + true, + false, + true, + false + ], + [ + true, + true, + false, + true, + true, + false, + false, + false, + false, + false + ], + [ + true, + true, + false, + true, + true, + false, + true, + true, + true, + true + ], + [ + true, + false, + true, + true, + false, + true, + false, + false, + false, + true + ], + [ + false, + false, + false, + true, + true, + false, + false, + true, + false, + true + ], + [ + false, + true, + false, + false, + true, + false, + true, + true, + true, + true + ], + [ + true, + false, + false, + false, + true, + false, + false, + false, + false, + false + ], + [ + false, + true, + true, + true, + false, + true, + false, + true, + true, + true + ], + [ + false, + false, + true, + false, + false, + false, + false, + false, + false, + true + ], + [ + true, + true, + false, + true, + false, + false, + false, + false, + true, + false + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/input-1.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/input-1.json new file mode 100644 index 000000000..efdee7886 --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/input-1.json @@ -0,0 +1,91 @@ +{ + "type": "bool", + "data": [ + [ + [ + true, + false, + true, + false, + false, + true, + true, + false, + true, + false + ], + [ + true, + true, + false, + true, + false, + false, + false, + false, + true, + false + ], + [ + false, + true, + false, + true, + false, + true, + true, + true, + false, + false + ], + [ + true, + false, + true, + false, + true, + true, + false, + false, + true, + false + ], + [ + true, + false, + true, + true, + false, + true, + false, + true, + false, + false + ], + [ + false, + false, + false, + true, + false, + true, + false, + false, + true, + true + ], + [ + false, + false, + true, + true, + true, + false, + false, + true, + true, + false + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/test.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/test.json new file mode 100644 index 000000000..82fd8bfd1 --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputType_1x12x10_b/test.json @@ -0,0 +1,111 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "SCATTER", + attribute_type: "NONE", + inputs: [ + "input-0", + "const-2", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 12, + 10 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 1, + 7, + 10 + ], + type: "BOOL" + }, + { + name: "const-2", + shape: [ + 1, + 7 + ], + type: "INT32", + data: [ + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 11, + 0, + 0, + 0, + 5, + 0, + 0, + 0, + 5, + 0, + 0, + 0, + 5, + 0, + 0, + 0, + 9, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + 1, + 12, + 10 + ], + type: "BOOL" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |