aboutsummaryrefslogtreecommitdiff
path: root/operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-10-13 12:50:06 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-10-13 12:50:06 +0100
commit3da6f63bef663a54bf216c2af8d72ef3920268b6 (patch)
tree395a7155f35b9a7b522bfd2b772ac913cd4a8839 /operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16
parent3b7510e94f430c63f9aad3f4597265830973561c (diff)
downloadconformance_tests-3da6f63bef663a54bf216c2af8d72ef3920268b6.tar.gz
Updating ACTIVATION tests for FP16 and accumulator types
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: If4fb629e5fa685af9d35c63c4b2a5e00d82cff76
Diffstat (limited to 'operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16')
-rw-r--r--operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/desc.json22
-rw-r--r--operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/input-0.json95
-rw-r--r--operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/test.json55
3 files changed, 172 insertions, 0 deletions
diff --git a/operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/desc.json b/operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/desc.json
new file mode 100644
index 000000000..f43eca273
--- /dev/null
+++ b/operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/desc.json
@@ -0,0 +1,22 @@
+{
+ "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": 2,
+ "expected_failure": true,
+ "expected_failure_desc": "Max value smaller than min value",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/input-0.json b/operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/input-0.json
new file mode 100644
index 000000000..03cd40854
--- /dev/null
+++ b/operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/input-0.json
@@ -0,0 +1,95 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 4889,
+ 8828,
+ 4284,
+ 3511,
+ -26833,
+ 3880,
+ 19327
+ ],
+ [
+ -12849,
+ 6739,
+ -30749,
+ -9995,
+ -4148,
+ 31636,
+ -18705
+ ],
+ [
+ -14645,
+ -5995,
+ 32287,
+ 23160,
+ -30495,
+ -17437,
+ 21081
+ ],
+ [
+ -28948,
+ 23309,
+ -14328,
+ 27371,
+ -13528,
+ -4305,
+ 10611
+ ],
+ [
+ -24493,
+ 3737,
+ 328,
+ 18605,
+ 32512,
+ 10768,
+ -5952
+ ],
+ [
+ -6136,
+ -5377,
+ 20579,
+ -11717,
+ -21826,
+ -10860,
+ -31280
+ ],
+ [
+ -25812,
+ -26867,
+ 17796,
+ 14572,
+ 12895,
+ -2499,
+ 14225
+ ],
+ [
+ -22199,
+ 26255,
+ 68,
+ 28708,
+ -22787,
+ -175,
+ 12866
+ ],
+ [
+ -287,
+ -3529,
+ -21875,
+ -7798,
+ -17121,
+ -13009,
+ 12039
+ ],
+ [
+ 8538,
+ 7025,
+ -9057,
+ 30126,
+ -27024,
+ -10316,
+ -25035
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/test.json b/operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/test.json
new file mode 100644
index 000000000..5f9e7b792
--- /dev/null
+++ b/operators/activation/clamp/clamp_ERRORIF_MaxSmallerMin_10x7_i16/test.json
@@ -0,0 +1,55 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CLAMP",
+ attribute_type: "ClampAttribute",
+ attribute: {
+ min_int: 30270,
+ max_int: -10555,
+ min_fp: 0.0,
+ max_fp: 0.0
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 7
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10,
+ 7
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}