aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_unary/negate/negate_25_i8
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:53 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:53 +0100
commit241fe57970e126f59336a5aadf7380a158621182 (patch)
treed378b9c788adbcf4c491fd7898a9963c4f987bf9 /operators/ew_unary/negate/negate_25_i8
parent0eeab397805ba40bf3b1404bbf14cec6cfdc393c (diff)
downloadconformance_tests-241fe57970e126f59336a5aadf7380a158621182.tar.gz
Updating NEGATE tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: If89677f8640475f2d85f735a2e2a811be1060617
Diffstat (limited to 'operators/ew_unary/negate/negate_25_i8')
-rw-r--r--operators/ew_unary/negate/negate_25_i8/Conformance-result-0.json30
-rw-r--r--operators/ew_unary/negate/negate_25_i8/desc.json20
-rw-r--r--operators/ew_unary/negate/negate_25_i8/input-0.json30
-rw-r--r--operators/ew_unary/negate/negate_25_i8/test.json51
4 files changed, 131 insertions, 0 deletions
diff --git a/operators/ew_unary/negate/negate_25_i8/Conformance-result-0.json b/operators/ew_unary/negate/negate_25_i8/Conformance-result-0.json
new file mode 100644
index 000000000..71be28163
--- /dev/null
+++ b/operators/ew_unary/negate/negate_25_i8/Conformance-result-0.json
@@ -0,0 +1,30 @@
+{
+ "type": "int32",
+ "data": [
+ 73,
+ 107,
+ 127,
+ -36,
+ 1,
+ 37,
+ 98,
+ -9,
+ 62,
+ 88,
+ 86,
+ 127,
+ 127,
+ 60,
+ -26,
+ 127,
+ -18,
+ -10,
+ 127,
+ 40,
+ 127,
+ 7,
+ 22,
+ 111,
+ 127
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/negate/negate_25_i8/desc.json b/operators/ew_unary/negate/negate_25_i8/desc.json
new file mode 100644
index 000000000..3cd43b509
--- /dev/null
+++ b/operators/ew_unary/negate/negate_25_i8/desc.json
@@ -0,0 +1,20 @@
+{
+ "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": 0,
+ "expected_failure": false,
+ "expected_result_file": [
+ "Conformance-result-0.npy"
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/negate/negate_25_i8/input-0.json b/operators/ew_unary/negate/negate_25_i8/input-0.json
new file mode 100644
index 000000000..1da219a38
--- /dev/null
+++ b/operators/ew_unary/negate/negate_25_i8/input-0.json
@@ -0,0 +1,30 @@
+{
+ "type": "int32",
+ "data": [
+ 0,
+ -34,
+ -82,
+ 109,
+ 72,
+ 36,
+ -25,
+ 82,
+ 11,
+ -15,
+ -13,
+ -70,
+ -105,
+ 13,
+ 99,
+ -112,
+ 91,
+ 83,
+ -58,
+ 33,
+ -86,
+ 66,
+ 51,
+ -38,
+ -111
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/negate/negate_25_i8/test.json b/operators/ew_unary/negate/negate_25_i8/test.json
new file mode 100644
index 000000000..6d8bbff4f
--- /dev/null
+++ b/operators/ew_unary/negate/negate_25_i8/test.json
@@ -0,0 +1,51 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "NEGATE",
+ attribute_type: "NegateAttribute",
+ attribute: {
+ input1_zp: 86,
+ output_zp: -13
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 25
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 25
+ ],
+ type: "INT8"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}