aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4
diff options
context:
space:
mode:
Diffstat (limited to 'operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4')
-rw-r--r--operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/desc.json18
-rw-r--r--operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/input-0.json209
-rw-r--r--operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/test.json354
3 files changed, 581 insertions, 0 deletions
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/desc.json
new file mode 100644
index 000000000..9841e35f3
--- /dev/null
+++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/desc.json
@@ -0,0 +1,18 @@
+{
+ "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": "Weight DType not INT8 and zero point not 0"
+} \ No newline at end of file
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/input-0.json
new file mode 100644
index 000000000..c1c2e823b
--- /dev/null
+++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/input-0.json
@@ -0,0 +1,209 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 13,
+ -23,
+ -59,
+ 114,
+ -3,
+ 44,
+ -119,
+ -58,
+ 77,
+ -106,
+ -103,
+ 79,
+ -49,
+ -58,
+ 16,
+ -79,
+ -117,
+ -127,
+ -108,
+ -88,
+ 50,
+ -52,
+ -110,
+ -125,
+ -6,
+ 87,
+ -42,
+ -112,
+ -70,
+ -1,
+ -80,
+ 122
+ ],
+ [
+ 67,
+ -40,
+ 115,
+ -45,
+ -93,
+ 112,
+ 117,
+ -48,
+ 24,
+ -84,
+ 36,
+ 48,
+ 53,
+ 17,
+ 52,
+ 14,
+ 81,
+ -83,
+ -5,
+ -22,
+ 8,
+ -92,
+ -46,
+ 116,
+ -102,
+ 34,
+ 42,
+ -7,
+ -120,
+ -120,
+ -58,
+ -102
+ ],
+ [
+ -104,
+ -88,
+ -80,
+ 86,
+ 35,
+ -121,
+ 32,
+ -94,
+ -21,
+ -119,
+ -105,
+ -95,
+ -18,
+ -10,
+ -38,
+ 30,
+ 56,
+ 58,
+ 20,
+ 11,
+ -3,
+ -68,
+ -4,
+ -126,
+ 119,
+ -34,
+ 65,
+ 116,
+ -1,
+ 92,
+ -6,
+ -95
+ ],
+ [
+ -122,
+ -94,
+ 113,
+ -7,
+ -47,
+ -14,
+ -63,
+ 94,
+ 127,
+ -107,
+ 55,
+ -43,
+ -116,
+ 108,
+ -113,
+ -76,
+ -122,
+ -8,
+ 25,
+ -46,
+ -110,
+ -99,
+ 110,
+ 78,
+ 111,
+ 7,
+ 11,
+ 73,
+ 29,
+ -17,
+ -54,
+ -4
+ ],
+ [
+ -112,
+ -79,
+ 60,
+ 94,
+ -102,
+ -104,
+ -107,
+ 74,
+ -49,
+ -45,
+ -125,
+ 120,
+ -17,
+ 76,
+ 53,
+ -92,
+ 77,
+ 12,
+ 26,
+ -77,
+ 88,
+ 110,
+ -24,
+ -105,
+ 89,
+ 99,
+ 1,
+ 20,
+ -71,
+ -111,
+ 113,
+ -5
+ ],
+ [
+ -58,
+ 49,
+ -122,
+ -108,
+ -66,
+ -13,
+ -35,
+ -81,
+ -39,
+ -43,
+ 6,
+ 16,
+ 98,
+ 78,
+ -54,
+ 103,
+ 5,
+ -80,
+ -41,
+ 61,
+ 82,
+ -33,
+ -88,
+ -79,
+ -102,
+ 50,
+ 0,
+ -13,
+ 44,
+ 84,
+ 75,
+ -93
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/test.json
new file mode 100644
index 000000000..6b6bce3bb
--- /dev/null
+++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_6x32_i8xi4/test.json
@@ -0,0 +1,354 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ 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: -123,
+ weight_zp: 3
+ },
+ inputs: [
+ "input-0",
+ "const-1",
+ "const-2"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 6,
+ 32
+ ],
+ type: "INT8"
+ },
+ {
+ name: "const-1",
+ shape: [
+ 13,
+ 32
+ ],
+ type: "INT4",
+ data: [
+ 97,
+ 212,
+ 110,
+ 9,
+ 106,
+ 153,
+ 205,
+ 208,
+ 30,
+ 113,
+ 16,
+ 179,
+ 83,
+ 189,
+ 222,
+ 81,
+ 161,
+ 61,
+ 29,
+ 211,
+ 226,
+ 235,
+ 159,
+ 6,
+ 105,
+ 149,
+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+ 45,
+ 240,
+ 112,
+ 183,
+ 202,
+ 245,
+ 37,
+ 209,
+ 190,
+ 208,
+ 157
+ ]
+ },
+ {
+ name: "const-2",
+ shape: [
+ 13
+ ],
+ type: "INT32",
+ data: [
+ 69,
+ 78,
+ 146,
+ 76,
+ 97,
+ 113,
+ 115,
+ 112,
+ 18,
+ 57,
+ 143,
+ 255,
+ 123,
+ 104,
+ 57,
+ 9,
+ 55,
+ 254,
+ 3,
+ 109,
+ 207,
+ 135,
+ 240,
+ 2,
+ 47,
+ 179,
+ 104,
+ 31,
+ 183,
+ 167,
+ 151,
+ 237,
+ 139,
+ 110,
+ 170,
+ 3,
+ 145,
+ 228,
+ 152,
+ 5,
+ 36,
+ 164,
+ 8,
+ 54,
+ 13,
+ 8,
+ 172,
+ 26,
+ 49,
+ 192,
+ 1,
+ 1
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 6,
+ 13
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}