aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_unary/negate/negate_21_f16
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2022-12-14 12:54:33 +0000
committerEric Kunze <eric.kunze@arm.com>2022-12-15 16:42:48 +0000
commit1aa23bd44af0ae508dc83d26e66dfc6d68d837f8 (patch)
treeb8eb2bbc9481a662dfe90b7f056e8a2670626034 /operators/ew_unary/negate/negate_21_f16
parent263d638929db1393196f171254a9e87e70983046 (diff)
downloadconformance_tests-1aa23bd44af0ae508dc83d26e66dfc6d68d837f8.tar.gz
Create MI tests for EW Unary: ABS, CEIL, FLOOR, NEGATE
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I2359051636ec6f3924bfc854c227993a883067cc
Diffstat (limited to 'operators/ew_unary/negate/negate_21_f16')
-rw-r--r--operators/ew_unary/negate/negate_21_f16/Conformance-result-0.json26
-rw-r--r--operators/ew_unary/negate/negate_21_f16/desc.json23
-rw-r--r--operators/ew_unary/negate/negate_21_f16/input-0.json26
-rw-r--r--operators/ew_unary/negate/negate_21_f16/test.json51
4 files changed, 126 insertions, 0 deletions
diff --git a/operators/ew_unary/negate/negate_21_f16/Conformance-result-0.json b/operators/ew_unary/negate/negate_21_f16/Conformance-result-0.json
new file mode 100644
index 000000000..2a7af16e2
--- /dev/null
+++ b/operators/ew_unary/negate/negate_21_f16/Conformance-result-0.json
@@ -0,0 +1,26 @@
+{
+ "type": "float16",
+ "data": [
+ 0.198486328125,
+ 0.5166015625,
+ -1.70703125,
+ -0.57568359375,
+ -1.291015625,
+ 0.226318359375,
+ 1.0908203125,
+ -0.2183837890625,
+ 1.7451171875,
+ -1.310546875,
+ -0.52685546875,
+ -1.0322265625,
+ 0.58203125,
+ -1.8828125,
+ -1.572265625,
+ -1.11328125,
+ 1.2216796875,
+ 0.133056640625,
+ 1.8251953125,
+ 1.3828125,
+ -0.732421875
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/negate/negate_21_f16/desc.json b/operators/ew_unary/negate/negate_21_f16/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/ew_unary/negate/negate_21_f16/desc.json
@@ -0,0 +1,23 @@
+{
+ "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"
+ ],
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/negate/negate_21_f16/input-0.json b/operators/ew_unary/negate/negate_21_f16/input-0.json
new file mode 100644
index 000000000..fa1c3c412
--- /dev/null
+++ b/operators/ew_unary/negate/negate_21_f16/input-0.json
@@ -0,0 +1,26 @@
+{
+ "type": "float16",
+ "data": [
+ -0.198486328125,
+ -0.5166015625,
+ 1.70703125,
+ 0.57568359375,
+ 1.291015625,
+ -0.226318359375,
+ -1.0908203125,
+ 0.2183837890625,
+ -1.7451171875,
+ 1.310546875,
+ 0.52685546875,
+ 1.0322265625,
+ -0.58203125,
+ 1.8828125,
+ 1.572265625,
+ 1.11328125,
+ -1.2216796875,
+ -0.133056640625,
+ -1.8251953125,
+ -1.3828125,
+ 0.732421875
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/negate/negate_21_f16/test.json b/operators/ew_unary/negate/negate_21_f16/test.json
new file mode 100644
index 000000000..d12e4c61c
--- /dev/null
+++ b/operators/ew_unary/negate/negate_21_f16/test.json
@@ -0,0 +1,51 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "NEGATE",
+ attribute_type: "NegateAttribute",
+ attribute: {
+ input1_zp: 0,
+ output_zp: 0
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 21
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 21
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}