aboutsummaryrefslogtreecommitdiff
path: root/operators/activation/tanh/tanh_50_f16
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2022-12-14 17:32:32 +0000
committerJames Ward <james.ward@arm.com>2022-12-14 17:32:32 +0000
commit7125e9b2ef21580734f6ec654f6c47da6d870ebe (patch)
tree37b2efd772f64df271fe7cc7700b6b2f83ea41e5 /operators/activation/tanh/tanh_50_f16
parent9438531ceffbf9f8c6c123b93ec81656f6685fef (diff)
downloadconformance_tests-7125e9b2ef21580734f6ec654f6c47da6d870ebe.tar.gz
Create MI tests for Activation: SIGMOID, TANH
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I9e8fb2ab4b4227ffb68a2a216265f5d9425b0178
Diffstat (limited to 'operators/activation/tanh/tanh_50_f16')
-rw-r--r--operators/activation/tanh/tanh_50_f16/Conformance-result-0.json55
-rw-r--r--operators/activation/tanh/tanh_50_f16/desc.json23
-rw-r--r--operators/activation/tanh/tanh_50_f16/input-0.json55
-rw-r--r--operators/activation/tanh/tanh_50_f16/test.json47
4 files changed, 180 insertions, 0 deletions
diff --git a/operators/activation/tanh/tanh_50_f16/Conformance-result-0.json b/operators/activation/tanh/tanh_50_f16/Conformance-result-0.json
new file mode 100644
index 000000000..7ba5b46de
--- /dev/null
+++ b/operators/activation/tanh/tanh_50_f16/Conformance-result-0.json
@@ -0,0 +1,55 @@
+{
+ "type": "float16",
+ "data": [
+ 0.75244140625,
+ 0.95361328125,
+ -0.6025390625,
+ -0.476318359375,
+ -0.12115478515625,
+ -0.84619140625,
+ -0.9013671875,
+ -0.09686279296875,
+ -0.7978515625,
+ 0.5908203125,
+ -0.246337890625,
+ 0.86962890625,
+ 0.66455078125,
+ -0.63525390625,
+ 0.869140625,
+ 0.83935546875,
+ -0.422119140625,
+ -0.689453125,
+ 0.623046875,
+ -0.89404296875,
+ -0.83349609375,
+ -0.9619140625,
+ 0.81689453125,
+ 0.57763671875,
+ 0.67529296875,
+ 0.80859375,
+ -0.162841796875,
+ 0.26806640625,
+ -0.8935546875,
+ -0.91259765625,
+ 0.58740234375,
+ -0.1151123046875,
+ 0.255126953125,
+ 0.78564453125,
+ 0.4921875,
+ 0.211181640625,
+ 0.2325439453125,
+ -0.6552734375,
+ -0.9541015625,
+ -0.2479248046875,
+ -0.81494140625,
+ -0.350341796875,
+ 0.88818359375,
+ -0.78759765625,
+ -0.943359375,
+ -0.70361328125,
+ -0.67822265625,
+ 0.56982421875,
+ 0.2242431640625,
+ 0.81298828125
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/tanh/tanh_50_f16/desc.json b/operators/activation/tanh/tanh_50_f16/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/activation/tanh/tanh_50_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/activation/tanh/tanh_50_f16/input-0.json b/operators/activation/tanh/tanh_50_f16/input-0.json
new file mode 100644
index 000000000..237c257f1
--- /dev/null
+++ b/operators/activation/tanh/tanh_50_f16/input-0.json
@@ -0,0 +1,55 @@
+{
+ "type": "float16",
+ "data": [
+ 0.97900390625,
+ 1.8701171875,
+ -0.69677734375,
+ -0.51806640625,
+ -0.12176513671875,
+ -1.2421875,
+ -1.48046875,
+ -0.09716796875,
+ -1.0927734375,
+ 0.67919921875,
+ -0.25146484375,
+ 1.3310546875,
+ 0.80126953125,
+ -0.75048828125,
+ 1.3291015625,
+ 1.21875,
+ -0.4501953125,
+ -0.8466796875,
+ 0.72998046875,
+ -1.44140625,
+ -1.2001953125,
+ -1.970703125,
+ 1.1474609375,
+ 0.6591796875,
+ 0.82080078125,
+ 1.123046875,
+ -0.164306640625,
+ 0.27490234375,
+ -1.4404296875,
+ -1.5419921875,
+ 0.673828125,
+ -0.1156005859375,
+ 0.260986328125,
+ 1.0595703125,
+ 0.5390625,
+ 0.21435546875,
+ 0.23681640625,
+ -0.7841796875,
+ -1.876953125,
+ -0.253173828125,
+ -1.1416015625,
+ -0.365966796875,
+ 1.4140625,
+ -1.064453125,
+ -1.7666015625,
+ -0.87451171875,
+ -0.82568359375,
+ 0.6474609375,
+ 0.2281494140625,
+ 1.1357421875
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/tanh/tanh_50_f16/test.json b/operators/activation/tanh/tanh_50_f16/test.json
new file mode 100644
index 000000000..c5f451e5b
--- /dev/null
+++ b/operators/activation/tanh/tanh_50_f16/test.json
@@ -0,0 +1,47 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "TANH",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 50
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 50
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}