diff options
author | James Ward <james.ward@arm.com> | 2023-02-03 13:02:00 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-02-06 19:02:24 +0000 |
commit | 6dad592daec2aeed4473a084f54e60f088597fe4 (patch) | |
tree | 605649f1f4febe0b73d0095076c1ea45a52c4fb6 /operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16 | |
parent | b00b1a1db3067c916671ce76840fd06b551b712b (diff) | |
download | conformance_tests-6dad592daec2aeed4473a084f54e60f088597fe4.tar.gz |
Create MI tests for Tensors: AVG_POOL2D, FULLY_CONNECTED, MATMUL
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I3bf038baba78bd9a54b33e6c718e02ff5eae37ad
Diffstat (limited to 'operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16')
3 files changed, 371 insertions, 0 deletions
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16/desc.json new file mode 100644 index 000000000..d57e8394e --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16/desc.json @@ -0,0 +1,21 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0" + ], + "ifm_file": [ + "input-0.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/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16/input-0.json new file mode 100644 index 000000000..80f3da17e --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16/input-0.json @@ -0,0 +1,35 @@ +{ + "type": "float32", + "data": [ + [ + 0.1533203125, + 0.318359375, + 0.8671875, + 0.50390625, + 0.53125, + 0.71875, + 0.57421875, + 0.0693359375 + ], + [ + 0.80078125, + 0.921875, + 0.05322265625, + 0.12109375, + 0.69921875, + 0.6015625, + 0.380859375, + 0.5390625 + ], + [ + 0.703125, + 0.50390625, + 0.1396484375, + 0.08935546875, + 0.4375, + 0.921875, + 0.5546875, + 0.357421875 + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16/test.json new file mode 100644 index 000000000..44f91d9d7 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_3x8_bf16xbf16_acci16/test.json @@ -0,0 +1,315 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: 0, + weight_zp: 0 + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 3, + 8 + ], + type: "BF16" + }, + { + name: "const-1", + shape: [ + 6, + 8 + ], + type: "BF16", + data: [ + 0, + 0, + 104, + 63, + 0, + 0, + 198, + 62, + 0, + 0, + 2, + 63, + 0, + 0, + 238, + 61, + 0, + 0, + 60, + 63, + 0, + 0, + 51, + 63, + 0, + 0, + 75, + 63, + 0, + 0, + 166, + 62, + 0, + 0, + 223, + 62, + 0, + 0, + 44, + 62, + 0, + 0, + 118, + 63, + 0, + 0, + 176, + 61, + 0, + 0, + 38, + 63, + 0, + 0, + 52, + 63, + 0, + 0, + 33, + 62, + 0, + 0, + 187, + 62, + 0, + 0, + 48, + 61, + 0, + 0, + 14, + 63, + 0, + 0, + 126, + 63, + 0, + 0, + 220, + 62, + 0, + 0, + 125, + 63, + 0, + 0, + 1, + 62, + 0, + 0, + 200, + 62, + 0, + 0, + 102, + 63, + 0, + 0, + 96, + 63, + 0, + 0, + 165, + 62, + 0, + 0, + 45, + 63, + 0, + 0, + 98, + 63, + 0, + 0, + 68, + 63, + 0, + 0, + 32, + 63, + 0, + 0, + 28, + 62, + 0, + 0, + 149, + 61, + 0, + 0, + 29, + 63, + 0, + 0, + 0, + 63, + 0, + 0, + 115, + 62, + 0, + 0, + 149, + 62, + 0, + 0, + 200, + 62, + 0, + 0, + 253, + 62, + 0, + 0, + 199, + 62, + 0, + 0, + 198, + 62, + 0, + 0, + 237, + 61, + 0, + 0, + 93, + 63, + 0, + 0, + 27, + 63, + 0, + 0, + 21, + 62, + 0, + 0, + 217, + 62, + 0, + 0, + 213, + 62, + 0, + 0, + 25, + 63, + 0, + 0, + 27, + 63 + ] + }, + { + name: "const-2", + shape: [ + 6 + ], + type: "FP32", + data: [ + 71, + 45, + 37, + 63, + 198, + 169, + 50, + 63, + 73, + 171, + 211, + 61, + 195, + 30, + 156, + 62, + 4, + 29, + 142, + 60, + 198, + 198, + 232, + 62 + ] + }, + { + name: "result-0", + shape: [ + 3, + 6 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |