aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2023-02-03 13:02:00 +0000
committerEric Kunze <eric.kunze@arm.com>2023-02-06 19:02:24 +0000
commit6dad592daec2aeed4473a084f54e60f088597fe4 (patch)
tree605649f1f4febe0b73d0095076c1ea45a52c4fb6 /operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32
parentb00b1a1db3067c916671ce76840fd06b551b712b (diff)
downloadconformance_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_WrongRank_2x4x5x5_f16xf16_accf32')
-rw-r--r--operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/desc.json21
-rw-r--r--operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/input-0.json305
-rw-r--r--operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/test.json113
3 files changed, 439 insertions, 0 deletions
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/desc.json
new file mode 100644
index 000000000..c9d3d68c3
--- /dev/null
+++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_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": "Rank not supported for this operator",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/input-0.json
new file mode 100644
index 000000000..63f9d90d7
--- /dev/null
+++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/input-0.json
@@ -0,0 +1,305 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ [
+ [
+ 0.74951171875,
+ 0.67626953125,
+ 0.74609375,
+ 0.2086181640625,
+ 0.498291015625
+ ],
+ [
+ 0.58837890625,
+ 0.0024776458740234375,
+ 0.85595703125,
+ 0.60986328125,
+ 0.129150390625
+ ],
+ [
+ 0.81640625,
+ 0.71728515625,
+ 0.75830078125,
+ 0.39208984375,
+ 0.85400390625
+ ],
+ [
+ 0.4140625,
+ 0.5703125,
+ 0.0006422996520996094,
+ 0.64501953125,
+ 0.71826171875
+ ],
+ [
+ 0.56689453125,
+ 0.49658203125,
+ 0.81005859375,
+ 0.68115234375,
+ 0.278076171875
+ ]
+ ],
+ [
+ [
+ 0.958984375,
+ 0.70703125,
+ 0.98779296875,
+ 0.97119140625,
+ 0.9189453125
+ ],
+ [
+ 0.75537109375,
+ 0.609375,
+ 0.172119140625,
+ 0.54345703125,
+ 0.76513671875
+ ],
+ [
+ 0.52099609375,
+ 0.8681640625,
+ 0.10968017578125,
+ 0.380859375,
+ 0.505859375
+ ],
+ [
+ 0.432373046875,
+ 0.10858154296875,
+ 0.153564453125,
+ 0.83740234375,
+ 0.484375
+ ],
+ [
+ 0.048736572265625,
+ 0.0164947509765625,
+ 0.473388671875,
+ 0.1644287109375,
+ 0.705078125
+ ]
+ ],
+ [
+ [
+ 0.79541015625,
+ 0.228271484375,
+ 0.59228515625,
+ 0.1544189453125,
+ 0.303466796875
+ ],
+ [
+ 0.888671875,
+ 0.5439453125,
+ 0.8857421875,
+ 0.2252197265625,
+ 0.330078125
+ ],
+ [
+ 0.470947265625,
+ 0.47998046875,
+ 0.99755859375,
+ 0.11444091796875,
+ 0.85205078125
+ ],
+ [
+ 0.86376953125,
+ 0.55322265625,
+ 0.343994140625,
+ 0.51904296875,
+ 0.29248046875
+ ],
+ [
+ 0.79931640625,
+ 0.498291015625,
+ 0.92578125,
+ 0.62255859375,
+ 0.51416015625
+ ]
+ ],
+ [
+ [
+ 0.7109375,
+ 0.50390625,
+ 0.904296875,
+ 0.1844482421875,
+ 0.97314453125
+ ],
+ [
+ 0.81201171875,
+ 0.86083984375,
+ 0.48291015625,
+ 0.83740234375,
+ 0.306884765625
+ ],
+ [
+ 0.76171875,
+ 0.1405029296875,
+ 0.30712890625,
+ 0.44580078125,
+ 0.322265625
+ ],
+ [
+ 0.386962890625,
+ 0.8203125,
+ 0.256591796875,
+ 0.7451171875,
+ 0.07373046875
+ ],
+ [
+ 0.765625,
+ 0.7919921875,
+ 0.401611328125,
+ 0.72265625,
+ 0.9150390625
+ ]
+ ]
+ ],
+ [
+ [
+ [
+ 0.80078125,
+ 0.390380859375,
+ 0.484130859375,
+ 0.779296875,
+ 0.29248046875
+ ],
+ [
+ 0.8037109375,
+ 0.328125,
+ 0.80615234375,
+ 0.0867919921875,
+ 0.044403076171875
+ ],
+ [
+ 0.99755859375,
+ 0.86962890625,
+ 0.8828125,
+ 0.951171875,
+ 0.438232421875
+ ],
+ [
+ 0.286865234375,
+ 0.1300048828125,
+ 0.5009765625,
+ 0.2200927734375,
+ 0.935546875
+ ],
+ [
+ 0.004001617431640625,
+ 0.1431884765625,
+ 0.2464599609375,
+ 0.198974609375,
+ 0.225830078125
+ ]
+ ],
+ [
+ [
+ 0.65625,
+ 0.327392578125,
+ 0.615234375,
+ 0.89013671875,
+ 0.6025390625
+ ],
+ [
+ 0.6943359375,
+ 0.365478515625,
+ 0.1597900390625,
+ 0.320556640625,
+ 0.96435546875
+ ],
+ [
+ 0.62158203125,
+ 0.277587890625,
+ 0.450927734375,
+ 0.83544921875,
+ 0.66845703125
+ ],
+ [
+ 0.560546875,
+ 0.88525390625,
+ 0.67236328125,
+ 0.642578125,
+ 0.1898193359375
+ ],
+ [
+ 0.10638427734375,
+ 0.96533203125,
+ 0.5986328125,
+ 0.415771484375,
+ 0.5888671875
+ ]
+ ],
+ [
+ [
+ 0.061798095703125,
+ 0.822265625,
+ 0.2166748046875,
+ 0.8046875,
+ 0.5341796875
+ ],
+ [
+ 0.276611328125,
+ 0.03021240234375,
+ 0.81591796875,
+ 0.176513671875,
+ 0.05181884765625
+ ],
+ [
+ 0.755859375,
+ 0.35009765625,
+ 0.389404296875,
+ 0.2470703125,
+ 0.859375
+ ],
+ [
+ 0.29736328125,
+ 0.210205078125,
+ 0.309326171875,
+ 0.203125,
+ 0.317626953125
+ ],
+ [
+ 0.08294677734375,
+ 0.1585693359375,
+ 0.4169921875,
+ 0.87939453125,
+ 0.057281494140625
+ ]
+ ],
+ [
+ [
+ 0.212646484375,
+ 0.908203125,
+ 0.89013671875,
+ 0.6796875,
+ 0.240478515625
+ ],
+ [
+ 0.419921875,
+ 0.211181640625,
+ 0.1285400390625,
+ 0.3798828125,
+ 0.57568359375
+ ],
+ [
+ 0.35986328125,
+ 0.61083984375,
+ 0.296142578125,
+ 0.345947265625,
+ 0.79052734375
+ ],
+ [
+ 0.87841796875,
+ 0.322021484375,
+ 0.5712890625,
+ 0.278076171875,
+ 0.0533447265625
+ ],
+ [
+ 0.73779296875,
+ 0.1710205078125,
+ 0.42578125,
+ 0.487060546875,
+ 0.1844482421875
+ ]
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/test.json
new file mode 100644
index 000000000..967627018
--- /dev/null
+++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_2x4x5x5_f16xf16_accf32/test.json
@@ -0,0 +1,113 @@
+{
+ 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: [
+ 2,
+ 4,
+ 5,
+ 5
+ ],
+ type: "FP16"
+ },
+ {
+ name: "const-1",
+ shape: [
+ 1,
+ 4
+ ],
+ type: "FP16",
+ data: [
+ 13,
+ 46,
+ 145,
+ 53,
+ 158,
+ 59,
+ 236,
+ 56
+ ]
+ },
+ {
+ name: "const-2",
+ shape: [
+ 1
+ ],
+ type: "FP32",
+ data: [
+ 52,
+ 72,
+ 195,
+ 62
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 2,
+ 1
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}