diff options
author | James Ward <james.ward@arm.com> | 2022-11-21 10:32:30 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2022-11-21 10:35:21 +0000 |
commit | 4c39d9a327b60518b34c6f333d379b2b82184510 (patch) | |
tree | c1a212eaf8cf9e30781c9e37f81ec061412300df /operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16 | |
parent | a25d672b327ad02b3813592803e41f5909aa0d5a (diff) | |
download | conformance_tests-4c39d9a327b60518b34c6f333d379b2b82184510.tar.gz |
Create MI tests for Scatter: SCATTER
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I5d8fa1a91ff561fad3dbaefe75262c3e04d42347
Diffstat (limited to 'operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16')
4 files changed, 480 insertions, 0 deletions
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/desc.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/desc.json new file mode 100644 index 000000000..4517bc2ab --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/desc.json @@ -0,0 +1,23 @@ +{ + "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": "Output data type not supported for this configuration of operator", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/input-0.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/input-0.json new file mode 100644 index 000000000..5510c73dd --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/input-0.json @@ -0,0 +1,163 @@ +{ + "type": "float16", + "data": [ + [ + [ + 0.2325439453125, + 0.367431640625, + 0.366455078125, + 0.327392578125, + 0.37939453125, + 0.685546875, + 0.296875, + 0.94873046875, + 0.91650390625, + 0.48095703125, + 0.328369140625 + ], + [ + 0.53564453125, + 0.8486328125, + 0.65234375, + 0.80419921875, + 0.53271484375, + 0.6328125, + 0.2880859375, + 0.73486328125, + 0.202392578125, + 0.69482421875, + 0.86083984375 + ], + [ + 0.132080078125, + 0.6142578125, + 0.0950927734375, + 0.7255859375, + 0.08447265625, + 0.93603515625, + 0.137451171875, + 0.958984375, + 0.80078125, + 0.59375, + 0.78271484375 + ], + [ + 0.794921875, + 0.94580078125, + 0.25341796875, + 0.58984375, + 0.09503173828125, + 0.6162109375, + 0.1712646484375, + 0.56494140625, + 0.572265625, + 0.466064453125, + 0.5224609375 + ], + [ + 0.76416015625, + 0.79931640625, + 0.4921875, + 0.599609375, + 0.93115234375, + 0.1197509765625, + 0.11712646484375, + 0.08770751953125, + 0.65771484375, + 0.418701171875, + 0.7744140625 + ], + [ + 0.67138671875, + 0.333740234375, + 0.8984375, + 0.7626953125, + 0.2705078125, + 0.3642578125, + 0.314453125, + 0.1575927734375, + 0.1478271484375, + 0.93603515625, + 0.43798828125 + ], + [ + 0.38330078125, + 0.7294921875, + 0.55322265625, + 0.93603515625, + 0.7802734375, + 0.479248046875, + 0.37646484375, + 0.98681640625, + 0.7177734375, + 0.951171875, + 0.11846923828125 + ], + [ + 0.8505859375, + 0.63720703125, + 0.1219482421875, + 0.58837890625, + 0.68603515625, + 0.01230621337890625, + 0.454345703125, + 0.8251953125, + 0.29541015625, + 0.45849609375, + 0.4423828125 + ], + [ + 0.302001953125, + 0.91845703125, + 0.78125, + 0.110595703125, + 0.9970703125, + 0.87939453125, + 0.283935546875, + 0.8369140625, + 0.1064453125, + 0.9990234375, + 0.66552734375 + ], + [ + 0.64990234375, + 0.0904541015625, + 0.89697265625, + 0.0290069580078125, + 0.2408447265625, + 0.14306640625, + 0.77685546875, + 0.1982421875, + 0.91064453125, + 0.65625, + 0.036163330078125 + ], + [ + 0.005428314208984375, + 0.051666259765625, + 0.60595703125, + 0.80126953125, + 0.238525390625, + 0.849609375, + 0.057220458984375, + 0.80078125, + 0.927734375, + 0.77197265625, + 0.6982421875 + ], + [ + 0.837890625, + 0.0401611328125, + 0.2017822265625, + 0.12493896484375, + 0.50439453125, + 0.7451171875, + 0.6298828125, + 0.85107421875, + 0.1552734375, + 0.73486328125, + 0.1929931640625 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/input-1.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/input-1.json new file mode 100644 index 000000000..98505155e --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/input-1.json @@ -0,0 +1,163 @@ +{ + "type": "float16", + "data": [ + [ + [ + 0.270751953125, + 0.7099609375, + 0.97998046875, + 0.611328125, + 0.05450439453125, + 0.6162109375, + 0.0423583984375, + 0.88427734375, + 0.70947265625, + 0.173095703125, + 0.09173583984375 + ], + [ + 0.18359375, + 0.97998046875, + 0.45849609375, + 0.7841796875, + 0.63623046875, + 0.572265625, + 0.1451416015625, + 0.94580078125, + 0.30126953125, + 0.578125, + 0.69970703125 + ], + [ + 0.6494140625, + 0.9404296875, + 0.1484375, + 0.50830078125, + 0.404052734375, + 0.47412109375, + 0.11920166015625, + 0.1341552734375, + 0.278076171875, + 0.3046875, + 0.427978515625 + ], + [ + 0.61083984375, + 0.634765625, + 0.411865234375, + 0.40869140625, + 0.2176513671875, + 0.58837890625, + 0.317138671875, + 0.03607177734375, + 0.41845703125, + 0.47412109375, + 0.2255859375 + ], + [ + 0.572265625, + 0.56591796875, + 0.7021484375, + 0.64794921875, + 0.65234375, + 0.316162109375, + 0.78759765625, + 0.54931640625, + 0.431396484375, + 0.6259765625, + 0.360595703125 + ], + [ + 0.5126953125, + 0.73681640625, + 0.88623046875, + 0.9208984375, + 0.50341796875, + 0.5205078125, + 0.7998046875, + 0.314453125, + 0.83740234375, + 0.494140625, + 0.1158447265625 + ], + [ + 0.07208251953125, + 0.841796875, + 0.055572509765625, + 0.280517578125, + 0.334228515625, + 0.1729736328125, + 0.31396484375, + 0.74267578125, + 0.01468658447265625, + 0.8271484375, + 0.8564453125 + ], + [ + 0.372314453125, + 0.153564453125, + 0.60107421875, + 0.11968994140625, + 0.364990234375, + 0.95849609375, + 0.99560546875, + 0.77197265625, + 0.31103515625, + 0.6875, + 0.70556640625 + ], + [ + 0.387939453125, + 0.64111328125, + 0.0107269287109375, + 0.2091064453125, + 0.52490234375, + 0.1636962890625, + 0.1658935546875, + 0.83642578125, + 0.9892578125, + 0.55615234375, + 0.8388671875 + ], + [ + 0.990234375, + 0.1416015625, + 0.4482421875, + 0.392578125, + 0.080078125, + 0.75537109375, + 0.433837890625, + 0.46923828125, + 0.150634765625, + 0.180908203125, + 0.9072265625 + ], + [ + 0.044647216796875, + 0.23291015625, + 0.2919921875, + 0.490234375, + 0.58642578125, + 0.493408203125, + 0.0841064453125, + 0.24365234375, + 0.84375, + 0.6376953125, + 0.64892578125 + ], + [ + 0.67041015625, + 0.7626953125, + 0.05810546875, + 0.36669921875, + 0.53955078125, + 0.33837890625, + 0.84423828125, + 0.482666015625, + 0.7685546875, + 0.85205078125, + 0.5048828125 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/test.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/test.json new file mode 100644 index 000000000..68f5a48e9 --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_f16/test.json @@ -0,0 +1,131 @@ +{ + 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, + 11 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 1, + 12, + 11 + ], + type: "FP16" + }, + { + name: "const-2", + shape: [ + 1, + 12 + ], + type: "INT32", + data: [ + 5, + 0, + 0, + 0, + 10, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 7, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 10, + 0, + 0, + 0, + 4, + 0, + 0, + 0, + 4, + 0, + 0, + 0, + 6, + 0, + 0, + 0, + 5, + 0, + 0, + 0, + 10, + 0, + 0, + 0, + 6, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + 1, + 12, + 11 + ], + type: "INT48" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |