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_WrongOutputList_4x9_f32xf32_accf32 | |
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_WrongOutputList_4x9_f32xf32_accf32')
3 files changed, 250 insertions, 0 deletions
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_4x9_f32xf32_accf32/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_4x9_f32xf32_accf32/desc.json new file mode 100644 index 000000000..671c6cfc2 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_4x9_f32xf32_accf32/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": "Op output list does not match expected output", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_4x9_f32xf32_accf32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_4x9_f32xf32_accf32/input-0.json new file mode 100644 index 000000000..957b4514a --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_4x9_f32xf32_accf32/input-0.json @@ -0,0 +1,49 @@ +{ + "type": "float32", + "data": [ + [ + 0.2057390809059143, + 0.2579636871814728, + 0.702232301235199, + 0.5093141794204712, + 0.7474474906921387, + 0.5128672122955322, + 0.3273846209049225, + 0.10366064310073853, + 0.20262210071086884 + ], + [ + 0.4007800817489624, + 0.5514543056488037, + 0.938637375831604, + 0.2397201806306839, + 0.6660849452018738, + 0.15254591405391693, + 0.7137531042098999, + 0.011340877041220665, + 0.6559199690818787 + ], + [ + 0.1632176637649536, + 0.18032445013523102, + 0.5589076280593872, + 0.3754115402698517, + 0.47130516171455383, + 0.30888888239860535, + 0.953467071056366, + 0.29065608978271484, + 0.5420474410057068 + ], + [ + 0.8543555736541748, + 0.6641808152198792, + 0.3227769434452057, + 0.5524367094039917, + 0.08299112319946289, + 0.5456864237785339, + 0.43138909339904785, + 0.7579337358474731, + 0.8479028344154358 + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_4x9_f32xf32_accf32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_4x9_f32xf32_accf32/test.json new file mode 100644 index 000000000..33bbb9d98 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_4x9_f32xf32_accf32/test.json @@ -0,0 +1,180 @@ +{ + 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", + "eiDummyOutput" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 4, + 9 + ], + type: "FP32" + }, + { + name: "const-1", + shape: [ + 2, + 9 + ], + type: "FP32", + data: [ + 70, + 104, + 76, + 62, + 76, + 252, + 166, + 61, + 22, + 247, + 199, + 62, + 21, + 190, + 8, + 63, + 47, + 236, + 192, + 62, + 99, + 233, + 32, + 63, + 93, + 114, + 1, + 63, + 185, + 198, + 111, + 63, + 183, + 155, + 209, + 62, + 180, + 242, + 168, + 61, + 58, + 151, + 154, + 62, + 220, + 27, + 27, + 63, + 185, + 21, + 131, + 62, + 219, + 184, + 137, + 62, + 114, + 220, + 173, + 62, + 38, + 3, + 63, + 63, + 146, + 172, + 112, + 63, + 145, + 100, + 179, + 62 + ] + }, + { + name: "const-2", + shape: [ + 2 + ], + type: "FP32", + data: [ + 4, + 46, + 72, + 62, + 186, + 93, + 215, + 62 + ] + }, + { + name: "result-0", + shape: [ + 4, + 2 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |