aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/pow/pow_20_f32
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_20_f32
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_20_f32')
-rw-r--r--operators/ew_binary/pow/pow_20_f32/Conformance-result-0.json25
-rw-r--r--operators/ew_binary/pow/pow_20_f32/desc.json25
-rw-r--r--operators/ew_binary/pow/pow_20_f32/input-0.json25
-rw-r--r--operators/ew_binary/pow/pow_20_f32/input-1.json6
-rw-r--r--operators/ew_binary/pow/pow_20_f32/test.json56
5 files changed, 137 insertions, 0 deletions
diff --git a/operators/ew_binary/pow/pow_20_f32/Conformance-result-0.json b/operators/ew_binary/pow/pow_20_f32/Conformance-result-0.json
new file mode 100644
index 000000000..bccfaabe0
--- /dev/null
+++ b/operators/ew_binary/pow/pow_20_f32/Conformance-result-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "float32",
+ "data": [
+ NaN,
+ 0.9740620851516724,
+ 1.0642948150634766,
+ 0.9969106912612915,
+ NaN,
+ 0.9403610229492188,
+ 0.9569641947746277,
+ 0.9896037578582764,
+ NaN,
+ NaN,
+ NaN,
+ NaN,
+ 1.0307552814483643,
+ 1.002059817314148,
+ 0.9409823417663574,
+ NaN,
+ NaN,
+ NaN,
+ NaN,
+ NaN
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/pow/pow_20_f32/desc.json b/operators/ew_binary/pow/pow_20_f32/desc.json
new file mode 100644
index 000000000..5ee7961df
--- /dev/null
+++ b/operators/ew_binary/pow/pow_20_f32/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_20_f32/input-0.json b/operators/ew_binary/pow/pow_20_f32/input-0.json
new file mode 100644
index 000000000..0e6e507b1
--- /dev/null
+++ b/operators/ew_binary/pow/pow_20_f32/input-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "float32",
+ "data": [
+ -1.7447309494018555,
+ 1.3105247020721436,
+ 0.5266575813293457,
+ 1.032351016998291,
+ -0.5818961262702942,
+ 1.8827921152114868,
+ 1.5724844932556152,
+ 1.1135339736938477,
+ -1.2214452028274536,
+ -0.1331159919500351,
+ -1.8247849941253662,
+ -1.3828420639038086,
+ 0.7321957945823669,
+ 0.9790486097335815,
+ 1.8700389862060547,
+ -0.6966985464096069,
+ -0.5181611776351929,
+ -0.1217767521739006,
+ -1.242114543914795,
+ -1.480314016342163
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/pow/pow_20_f32/input-1.json b/operators/ew_binary/pow/pow_20_f32/input-1.json
new file mode 100644
index 000000000..11c16f14b
--- /dev/null
+++ b/operators/ew_binary/pow/pow_20_f32/input-1.json
@@ -0,0 +1,6 @@
+{
+ "type": "float32",
+ "data": [
+ -0.09718029201030731
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/pow/pow_20_f32/test.json b/operators/ew_binary/pow/pow_20_f32/test.json
new file mode 100644
index 000000000..d773b1f32
--- /dev/null
+++ b/operators/ew_binary/pow/pow_20_f32/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: [
+ 20
+ ],
+ type: "FP32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}