diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 12:50:06 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 12:50:06 +0100 |
commit | 3da6f63bef663a54bf216c2af8d72ef3920268b6 (patch) | |
tree | 395a7155f35b9a7b522bfd2b772ac913cd4a8839 /operators/activation/clamp/clamp_ERRORIF_WrongInputList_14x6_i16 | |
parent | 3b7510e94f430c63f9aad3f4597265830973561c (diff) | |
download | conformance_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_WrongInputList_14x6_i16')
3 files changed, 194 insertions, 0 deletions
diff --git a/operators/activation/clamp/clamp_ERRORIF_WrongInputList_14x6_i16/desc.json b/operators/activation/clamp/clamp_ERRORIF_WrongInputList_14x6_i16/desc.json new file mode 100644 index 000000000..bf7c1974a --- /dev/null +++ b/operators/activation/clamp/clamp_ERRORIF_WrongInputList_14x6_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": "Op input list does not match expected input", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/activation/clamp/clamp_ERRORIF_WrongInputList_14x6_i16/input-0.json b/operators/activation/clamp/clamp_ERRORIF_WrongInputList_14x6_i16/input-0.json new file mode 100644 index 000000000..fcc0a31e3 --- /dev/null +++ b/operators/activation/clamp/clamp_ERRORIF_WrongInputList_14x6_i16/input-0.json @@ -0,0 +1,117 @@ +{ + "type": "int32", + "data": [ + [ + 5769, + -22957, + 3226, + 12513, + -73, + 14285 + ], + [ + 296, + -9612, + -18126, + -15848, + 20258, + -8321 + ], + [ + 14167, + -9228, + 1668, + 7013, + -1460, + 15980 + ], + [ + 27796, + 23707, + 27618, + -30803, + 16994, + 14847 + ], + [ + -5741, + -12178, + -29285, + 22193, + 22294, + -27806 + ], + [ + 5383, + 3353, + -21470, + 3189, + 20430, + -11370 + ], + [ + 14794, + 30822, + -2964, + -25761, + -13280, + -23830 + ], + [ + -9651, + 9454, + -19488, + 937, + 32641, + -15436 + ], + [ + 24895, + -12828, + 7477, + -22478, + -15199, + 24101 + ], + [ + 5881, + 4555, + 703, + -16723, + 28125, + -6985 + ], + [ + -32018, + 26652, + -29717, + 25352, + -15336, + -28240 + ], + [ + -18324, + 10099, + 3000, + -22743, + -13096, + -18948 + ], + [ + 10044, + 23868, + -16050, + 25899, + -6024, + -27349 + ], + [ + -11638, + 24505, + 20217, + 14974, + -6636, + 18068 + ] + ] +}
\ No newline at end of file diff --git a/operators/activation/clamp/clamp_ERRORIF_WrongInputList_14x6_i16/test.json b/operators/activation/clamp/clamp_ERRORIF_WrongInputList_14x6_i16/test.json new file mode 100644 index 000000000..563f2c542 --- /dev/null +++ b/operators/activation/clamp/clamp_ERRORIF_WrongInputList_14x6_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: 13780, + max_int: 19124, + min_fp: 0.0, + max_fp: 0.0 + }, + inputs: [ + + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 14, + 6 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 14, + 6 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |