aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/pow/pow_36_bf16
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-12-05 17:00:23 +0000
committerEric Kunze <eric.kunze@arm.com>2023-01-11 17:39:50 +0000
commitc9b776bfc8433d9d4ef1cd9a5502d1b35827ff27 (patch)
tree8626f5d7ac0e0755c71dd2c7deb7f0b690be10b1 /operators/ew_binary/pow/pow_36_bf16
parent59dba4bee812c3fddd8d5ed20464f8417a6997c4 (diff)
downloadconformance_tests-c9b776bfc8433d9d4ef1cd9a5502d1b35827ff27.tar.gz
Create MI tests for EW Binary: POW
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ia6310d487daab336d27c48923be95a9a677be678
Diffstat (limited to 'operators/ew_binary/pow/pow_36_bf16')
-rw-r--r--operators/ew_binary/pow/pow_36_bf16/Conformance-result-0.json41
-rw-r--r--operators/ew_binary/pow/pow_36_bf16/desc.json25
-rw-r--r--operators/ew_binary/pow/pow_36_bf16/input-0.json41
-rw-r--r--operators/ew_binary/pow/pow_36_bf16/input-1.json6
-rw-r--r--operators/ew_binary/pow/pow_36_bf16/test.json56
5 files changed, 169 insertions, 0 deletions
diff --git a/operators/ew_binary/pow/pow_36_bf16/Conformance-result-0.json b/operators/ew_binary/pow/pow_36_bf16/Conformance-result-0.json
new file mode 100644
index 000000000..b37b5ebec
--- /dev/null
+++ b/operators/ew_binary/pow/pow_36_bf16/Conformance-result-0.json
@@ -0,0 +1,41 @@
+{
+ "type": "float32",
+ "data": [
+ 1.21875,
+ NaN,
+ NaN,
+ 8768.0,
+ NaN,
+ 1.4921875,
+ NaN,
+ NaN,
+ NaN,
+ 2.953125,
+ NaN,
+ NaN,
+ NaN,
+ 0.361328125,
+ 0.443359375,
+ 1.453125,
+ NaN,
+ 0.3515625,
+ 0.83984375,
+ 1.265625,
+ NaN,
+ NaN,
+ NaN,
+ 0.453125,
+ NaN,
+ NaN,
+ NaN,
+ 6.71875,
+ NaN,
+ 0.5546875,
+ 0.94921875,
+ 1.2421875,
+ NaN,
+ 3.0625,
+ 6.0625,
+ 2.34375
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/pow/pow_36_bf16/desc.json b/operators/ew_binary/pow/pow_36_bf16/desc.json
new file mode 100644
index 000000000..5ee7961df
--- /dev/null
+++ b/operators/ew_binary/pow/pow_36_bf16/desc.json
@@ -0,0 +1,25 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0",
+ "input-1"
+ ],
+ "ifm_file": [
+ "input-0.npy",
+ "input-1.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_binary/pow/pow_36_bf16/input-0.json b/operators/ew_binary/pow/pow_36_bf16/input-0.json
new file mode 100644
index 000000000..04ad59cc4
--- /dev/null
+++ b/operators/ew_binary/pow/pow_36_bf16/input-0.json
@@ -0,0 +1,41 @@
+{
+ "type": "float32",
+ "data": [
+ 0.88671875,
+ -0.15234375,
+ -1.3515625,
+ 0.004150390625,
+ -1.390625,
+ 0.78515625,
+ -0.21484375,
+ -0.474609375,
+ -0.79296875,
+ 0.51953125,
+ -0.55078125,
+ -1.6484375,
+ -1.5234375,
+ 1.84375,
+ 1.6328125,
+ 0.796875,
+ -0.93359375,
+ 1.875,
+ 1.109375,
+ 0.8671875,
+ -0.2021484375,
+ -0.91015625,
+ -1.609375,
+ 1.609375,
+ -0.1767578125,
+ -1.1875,
+ -0.7734375,
+ 0.31640625,
+ -1.2890625,
+ 1.421875,
+ 1.03125,
+ 0.875,
+ -0.271484375,
+ 0.5078125,
+ 0.3359375,
+ 0.59765625
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/pow/pow_36_bf16/input-1.json b/operators/ew_binary/pow/pow_36_bf16/input-1.json
new file mode 100644
index 000000000..b5b31d967
--- /dev/null
+++ b/operators/ew_binary/pow/pow_36_bf16/input-1.json
@@ -0,0 +1,6 @@
+{
+ "type": "float32",
+ "data": [
+ -1.65625
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/pow/pow_36_bf16/test.json b/operators/ew_binary/pow/pow_36_bf16/test.json
new file mode 100644
index 000000000..8e8b89ace
--- /dev/null
+++ b/operators/ew_binary/pow/pow_36_bf16/test.json
@@ -0,0 +1,56 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "POW",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 36
+ ],
+ type: "BF16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1
+ ],
+ type: "BF16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 36
+ ],
+ type: "BF16"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}