aboutsummaryrefslogtreecommitdiff
path: root/operators/activation/clamp/clamp_54_i16
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:01 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:01 +0100
commit71c1895595e51da557bd73366bf5f27a8f6b3ffb (patch)
tree9394ef1b77a130fd7e94fc06de4802f5a13a5b67 /operators/activation/clamp/clamp_54_i16
parente2ac2482baa202af7fe759a6b58d9bdd75168b6a (diff)
downloadconformance_tests-71c1895595e51da557bd73366bf5f27a8f6b3ffb.tar.gz
Updating CLAMP tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ic560fc8052032300292922b52363cece6cfde553
Diffstat (limited to 'operators/activation/clamp/clamp_54_i16')
-rw-r--r--operators/activation/clamp/clamp_54_i16/Conformance-result-0.json59
-rw-r--r--operators/activation/clamp/clamp_54_i16/desc.json20
-rw-r--r--operators/activation/clamp/clamp_54_i16/input-0.json59
-rw-r--r--operators/activation/clamp/clamp_54_i16/test.json53
4 files changed, 191 insertions, 0 deletions
diff --git a/operators/activation/clamp/clamp_54_i16/Conformance-result-0.json b/operators/activation/clamp/clamp_54_i16/Conformance-result-0.json
new file mode 100644
index 000000000..0d1849b07
--- /dev/null
+++ b/operators/activation/clamp/clamp_54_i16/Conformance-result-0.json
@@ -0,0 +1,59 @@
+{
+ "type": "int32",
+ "data": [
+ 8962,
+ 8962,
+ 11960,
+ 8962,
+ 11960,
+ 11660,
+ 11960,
+ 11960,
+ 8962,
+ 8962,
+ 8962,
+ 8962,
+ 8962,
+ 8962,
+ 8962,
+ 11960,
+ 11960,
+ 11960,
+ 11960,
+ 8962,
+ 11960,
+ 8962,
+ 8962,
+ 11960,
+ 8962,
+ 8962,
+ 8962,
+ 11960,
+ 8962,
+ 8962,
+ 8962,
+ 11960,
+ 8962,
+ 8962,
+ 8962,
+ 8962,
+ 11128,
+ 11960,
+ 8962,
+ 8962,
+ 11960,
+ 8962,
+ 11960,
+ 8962,
+ 8962,
+ 11960,
+ 11960,
+ 8962,
+ 11960,
+ 11960,
+ 8962,
+ 11960,
+ 8962,
+ 8962
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/clamp/clamp_54_i16/desc.json b/operators/activation/clamp/clamp_54_i16/desc.json
new file mode 100644
index 000000000..3cd43b509
--- /dev/null
+++ b/operators/activation/clamp/clamp_54_i16/desc.json
@@ -0,0 +1,20 @@
+{
+ "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"
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/clamp/clamp_54_i16/input-0.json b/operators/activation/clamp/clamp_54_i16/input-0.json
new file mode 100644
index 000000000..d0326029f
--- /dev/null
+++ b/operators/activation/clamp/clamp_54_i16/input-0.json
@@ -0,0 +1,59 @@
+{
+ "type": "int32",
+ "data": [
+ -9534,
+ -28317,
+ 30847,
+ -3560,
+ 25763,
+ 11660,
+ 18244,
+ 17032,
+ -20013,
+ -8920,
+ -2181,
+ -145,
+ -29898,
+ 3051,
+ -22657,
+ 15949,
+ 11996,
+ 27690,
+ 16040,
+ -8740,
+ 30638,
+ -5843,
+ -11415,
+ 26577,
+ -8490,
+ -27765,
+ -1996,
+ 19377,
+ -20351,
+ -2429,
+ -24254,
+ 12221,
+ -1593,
+ -11129,
+ -17898,
+ 4227,
+ 11128,
+ 28855,
+ -4119,
+ -22238,
+ 21802,
+ 8504,
+ 13124,
+ -26397,
+ -12297,
+ 17553,
+ 21774,
+ -4246,
+ 19973,
+ 22393,
+ -7375,
+ 26089,
+ -13873,
+ -17069
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/clamp/clamp_54_i16/test.json b/operators/activation/clamp/clamp_54_i16/test.json
new file mode 100644
index 000000000..1be886ddf
--- /dev/null
+++ b/operators/activation/clamp/clamp_54_i16/test.json
@@ -0,0 +1,53 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CLAMP",
+ attribute_type: "ClampAttribute",
+ attribute: {
+ min_int: 8962,
+ max_int: 11960,
+ min_fp: 0.0,
+ max_fp: 0.0
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 54
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 54
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}