aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_unary/negate/negate_53_bf16
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_53_bf16
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_53_bf16')
-rw-r--r--operators/ew_unary/negate/negate_53_bf16/Conformance-result-0.json58
-rw-r--r--operators/ew_unary/negate/negate_53_bf16/desc.json23
-rw-r--r--operators/ew_unary/negate/negate_53_bf16/input-0.json58
-rw-r--r--operators/ew_unary/negate/negate_53_bf16/test.json51
4 files changed, 190 insertions, 0 deletions
diff --git a/operators/ew_unary/negate/negate_53_bf16/Conformance-result-0.json b/operators/ew_unary/negate/negate_53_bf16/Conformance-result-0.json
new file mode 100644
index 000000000..157f82184
--- /dev/null
+++ b/operators/ew_unary/negate/negate_53_bf16/Conformance-result-0.json
@@ -0,0 +1,58 @@
+{
+ "type": "float32",
+ "data": [
+ -0.9765625,
+ -1.8671875,
+ 0.6953125,
+ 0.515625,
+ 0.12158203125,
+ 1.234375,
+ 1.4765625,
+ 0.09716796875,
+ 1.0859375,
+ -0.67578125,
+ 0.25,
+ -1.328125,
+ -0.80078125,
+ 0.75,
+ -1.328125,
+ -1.21875,
+ 0.44921875,
+ 0.84375,
+ -0.7265625,
+ 1.4375,
+ 1.1953125,
+ 1.96875,
+ -1.140625,
+ -0.65625,
+ -0.8203125,
+ -1.1171875,
+ 0.1640625,
+ -0.2734375,
+ 1.4375,
+ 1.5390625,
+ -0.671875,
+ 0.115234375,
+ -0.259765625,
+ -1.0546875,
+ -0.53515625,
+ -0.2138671875,
+ -0.236328125,
+ 0.78125,
+ 1.875,
+ 0.251953125,
+ 1.140625,
+ 0.365234375,
+ -1.40625,
+ 1.0625,
+ 1.765625,
+ 0.87109375,
+ 0.82421875,
+ -0.64453125,
+ -0.2275390625,
+ -1.1328125,
+ -0.65625,
+ 0.373046875,
+ -1.25
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/negate/negate_53_bf16/desc.json b/operators/ew_unary/negate/negate_53_bf16/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/ew_unary/negate/negate_53_bf16/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_53_bf16/input-0.json b/operators/ew_unary/negate/negate_53_bf16/input-0.json
new file mode 100644
index 000000000..76c557a15
--- /dev/null
+++ b/operators/ew_unary/negate/negate_53_bf16/input-0.json
@@ -0,0 +1,58 @@
+{
+ "type": "float32",
+ "data": [
+ 0.9765625,
+ 1.8671875,
+ -0.6953125,
+ -0.515625,
+ -0.12158203125,
+ -1.234375,
+ -1.4765625,
+ -0.09716796875,
+ -1.0859375,
+ 0.67578125,
+ -0.25,
+ 1.328125,
+ 0.80078125,
+ -0.75,
+ 1.328125,
+ 1.21875,
+ -0.44921875,
+ -0.84375,
+ 0.7265625,
+ -1.4375,
+ -1.1953125,
+ -1.96875,
+ 1.140625,
+ 0.65625,
+ 0.8203125,
+ 1.1171875,
+ -0.1640625,
+ 0.2734375,
+ -1.4375,
+ -1.5390625,
+ 0.671875,
+ -0.115234375,
+ 0.259765625,
+ 1.0546875,
+ 0.53515625,
+ 0.2138671875,
+ 0.236328125,
+ -0.78125,
+ -1.875,
+ -0.251953125,
+ -1.140625,
+ -0.365234375,
+ 1.40625,
+ -1.0625,
+ -1.765625,
+ -0.87109375,
+ -0.82421875,
+ 0.64453125,
+ 0.2275390625,
+ 1.1328125,
+ 0.65625,
+ -0.373046875,
+ 1.25
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/negate/negate_53_bf16/test.json b/operators/ew_unary/negate/negate_53_bf16/test.json
new file mode 100644
index 000000000..11ec1ebe5
--- /dev/null
+++ b/operators/ew_unary/negate/negate_53_bf16/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: [
+ 53
+ ],
+ type: "BF16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 53
+ ],
+ type: "BF16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}