aboutsummaryrefslogtreecommitdiff
path: root/operators/activation/clamp/clamp_23_f16
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2023-02-02 16:34:37 +0000
committerJames Ward <james.ward@arm.com>2023-02-03 13:27:24 +0000
commitb00b1a1db3067c916671ce76840fd06b551b712b (patch)
tree24c8534002e0e99fdbcb5a120fd07a9854c3b1a5 /operators/activation/clamp/clamp_23_f16
parentde1c2ce9e0710f39464069d880fac7bb9ec24d1a (diff)
downloadconformance_tests-b00b1a1db3067c916671ce76840fd06b551b712b.tar.gz
Create/Regen MI Tests for CLAMP/PAD
* CLAMP framework tests excluded Signed-off-by: James Ward <james.ward@arm.com> Change-Id: Iba60d7e689b2ba2ced13924c3e141fb5aa9908a7
Diffstat (limited to 'operators/activation/clamp/clamp_23_f16')
-rw-r--r--operators/activation/clamp/clamp_23_f16/Conformance-result-0.json28
-rw-r--r--operators/activation/clamp/clamp_23_f16/desc.json23
-rw-r--r--operators/activation/clamp/clamp_23_f16/input-0.json28
-rw-r--r--operators/activation/clamp/clamp_23_f16/test.json68
4 files changed, 147 insertions, 0 deletions
diff --git a/operators/activation/clamp/clamp_23_f16/Conformance-result-0.json b/operators/activation/clamp/clamp_23_f16/Conformance-result-0.json
new file mode 100644
index 000000000..cfcc92dfc
--- /dev/null
+++ b/operators/activation/clamp/clamp_23_f16/Conformance-result-0.json
@@ -0,0 +1,28 @@
+{
+ "type": "float16",
+ "data": [
+ -0.51806640625,
+ -0.51806640625,
+ -0.51806640625,
+ -0.51806640625,
+ -0.51806640625,
+ -0.51806640625,
+ -0.69677734375,
+ -0.51806640625,
+ -0.69677734375,
+ -0.51806640625,
+ -0.51806640625,
+ -0.51806640625,
+ -0.58203125,
+ -0.51806640625,
+ -0.51806640625,
+ -0.51806640625,
+ -0.69677734375,
+ -0.51806640625,
+ -0.69677734375,
+ -0.69677734375,
+ -0.51806640625,
+ -0.51806640625,
+ -0.51806640625
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/clamp/clamp_23_f16/desc.json b/operators/activation/clamp/clamp_23_f16/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/activation/clamp/clamp_23_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/clamp/clamp_23_f16/input-0.json b/operators/activation/clamp/clamp_23_f16/input-0.json
new file mode 100644
index 000000000..858b37b7b
--- /dev/null
+++ b/operators/activation/clamp/clamp_23_f16/input-0.json
@@ -0,0 +1,28 @@
+{
+ "type": "float16",
+ "data": [
+ -0.198486328125,
+ -0.5166015625,
+ 1.70703125,
+ 0.57568359375,
+ 1.291015625,
+ -0.226318359375,
+ -1.0908203125,
+ 0.2183837890625,
+ -1.7451171875,
+ 1.310546875,
+ 0.52685546875,
+ 1.0322265625,
+ -0.58203125,
+ 1.8828125,
+ 1.572265625,
+ 1.11328125,
+ -1.2216796875,
+ -0.133056640625,
+ -1.8251953125,
+ -1.3828125,
+ 0.732421875,
+ 0.97900390625,
+ 1.8701171875
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/clamp/clamp_23_f16/test.json b/operators/activation/clamp/clamp_23_f16/test.json
new file mode 100644
index 000000000..61eea970e
--- /dev/null
+++ b/operators/activation/clamp/clamp_23_f16/test.json
@@ -0,0 +1,68 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CLAMP",
+ attribute_type: "ClampAttribute",
+ attribute: {
+ min_int: 0,
+ max_int: 0,
+ min_fp: [
+ 0,
+ 96,
+ 50,
+ 191
+ ],
+ max_fp: [
+ 0,
+ 160,
+ 4,
+ 191
+ ]
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 23
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 23
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}