aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32
diff options
context:
space:
mode:
Diffstat (limited to 'operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32')
-rw-r--r--operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/desc.json21
-rw-r--r--operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/input-0.json23
-rw-r--r--operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/test.json58
3 files changed, 102 insertions, 0 deletions
diff --git a/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/desc.json b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/desc.json
new file mode 100644
index 000000000..23599279c
--- /dev/null
+++ b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/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 DType not INT8 and zero point not 0",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/input-0.json b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/input-0.json
new file mode 100644
index 000000000..7a513027c
--- /dev/null
+++ b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/input-0.json
@@ -0,0 +1,23 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ -855071760,
+ 2128885583,
+ -1059499166,
+ -880210210,
+ 920147288,
+ 1241474382,
+ -1595219129
+ ],
+ [
+ 238621801,
+ -662828460,
+ 480007067,
+ 243655216,
+ 2086723606,
+ 1862585859,
+ 661369986
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/test.json b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/test.json
new file mode 100644
index 000000000..921706972
--- /dev/null
+++ b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_2x7_i32/test.json
@@ -0,0 +1,58 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "NEGATE",
+ attribute_type: "NegateAttribute",
+ attribute: {
+ input1_zp: 0,
+ output_zp: 52
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 2,
+ 7
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 2,
+ 7
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}