aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32
diff options
context:
space:
mode:
Diffstat (limited to 'operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32')
-rw-r--r--operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/desc.json22
-rw-r--r--operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/input-0.json33
-rw-r--r--operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/test.json112
3 files changed, 167 insertions, 0 deletions
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/desc.json
new file mode 100644
index 000000000..992afc22b
--- /dev/null
+++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/desc.json
@@ -0,0 +1,22 @@
+{
+ "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": "Input data type not supported for this operator",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/input-0.json
new file mode 100644
index 000000000..37c0c11ab
--- /dev/null
+++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/input-0.json
@@ -0,0 +1,33 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ -2,
+ 4
+ ],
+ [
+ -3,
+ 6
+ ],
+ [
+ -2,
+ 5
+ ],
+ [
+ 0,
+ 5
+ ],
+ [
+ 0,
+ 3
+ ],
+ [
+ -2,
+ -4
+ ],
+ [
+ -6,
+ 0
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/test.json
new file mode 100644
index 000000000..48ac33d36
--- /dev/null
+++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/test.json
@@ -0,0 +1,112 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ 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,
+ accum_dtype: "INT32"
+ },
+ inputs: [
+ "input-0",
+ "const-1",
+ "const-2"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 2
+ ],
+ type: "INT4"
+ },
+ {
+ name: "const-1",
+ shape: [
+ 11,
+ 2
+ ],
+ type: "INT4",
+ data: [
+ 32,
+ 118,
+ 158,
+ 97,
+ 18,
+ 111,
+ 84,
+ 217,
+ 26,
+ 89,
+ 87
+ ]
+ },
+ {
+ name: "const-2",
+ shape: [
+ 11
+ ],
+ type: "INT4",
+ data: [
+ 10,
+ 245,
+ 74,
+ 95,
+ 225,
+ 4
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 11
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}