aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_unary/abs/abs_20_f32
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/abs/abs_20_f32
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/abs/abs_20_f32')
-rw-r--r--operators/ew_unary/abs/abs_20_f32/Conformance-result-0.json25
-rw-r--r--operators/ew_unary/abs/abs_20_f32/desc.json23
-rw-r--r--operators/ew_unary/abs/abs_20_f32/input-0.json25
-rw-r--r--operators/ew_unary/abs/abs_20_f32/test.json47
4 files changed, 120 insertions, 0 deletions
diff --git a/operators/ew_unary/abs/abs_20_f32/Conformance-result-0.json b/operators/ew_unary/abs/abs_20_f32/Conformance-result-0.json
new file mode 100644
index 000000000..2b7a03b9a
--- /dev/null
+++ b/operators/ew_unary/abs/abs_20_f32/Conformance-result-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "float32",
+ "data": [
+ 0.19845624268054962,
+ 0.5168079137802124,
+ 1.7070599794387817,
+ 0.5754604935646057,
+ 1.2910465002059937,
+ 0.22634319961071014,
+ 1.0910451412200928,
+ 0.21833914518356323,
+ 1.7447309494018555,
+ 1.3105247020721436,
+ 0.5266575813293457,
+ 1.032351016998291,
+ 0.5818961262702942,
+ 1.8827921152114868,
+ 1.5724844932556152,
+ 1.1135339736938477,
+ 1.2214452028274536,
+ 0.1331159919500351,
+ 1.8247849941253662,
+ 1.3828420639038086
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/abs/abs_20_f32/desc.json b/operators/ew_unary/abs/abs_20_f32/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/ew_unary/abs/abs_20_f32/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/abs/abs_20_f32/input-0.json b/operators/ew_unary/abs/abs_20_f32/input-0.json
new file mode 100644
index 000000000..8b339275f
--- /dev/null
+++ b/operators/ew_unary/abs/abs_20_f32/input-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "float32",
+ "data": [
+ -0.19845624268054962,
+ -0.5168079137802124,
+ 1.7070599794387817,
+ 0.5754604935646057,
+ 1.2910465002059937,
+ -0.22634319961071014,
+ -1.0910451412200928,
+ 0.21833914518356323,
+ -1.7447309494018555,
+ 1.3105247020721436,
+ 0.5266575813293457,
+ 1.032351016998291,
+ -0.5818961262702942,
+ 1.8827921152114868,
+ 1.5724844932556152,
+ 1.1135339736938477,
+ -1.2214452028274536,
+ -0.1331159919500351,
+ -1.8247849941253662,
+ -1.3828420639038086
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_unary/abs/abs_20_f32/test.json b/operators/ew_unary/abs/abs_20_f32/test.json
new file mode 100644
index 000000000..45d12502d
--- /dev/null
+++ b/operators/ew_unary/abs/abs_20_f32/test.json
@@ -0,0 +1,47 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "ABS",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 20
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}