aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:08:54 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:08:54 +0100
commitf1e20a471670b0b0b20fff7de176cfdc1bf8ad8a (patch)
treea2b3743e596604aa7956bc2e74d2cee4c053bb41 /operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0
parent0ea9b225e914a7ee00ebd0bc7c3861dc6230a900 (diff)
downloadconformance_tests-f1e20a471670b0b0b20fff7de176cfdc1bf8ad8a.tar.gz
Updating RESCALE tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I411332528a9e94c4fa9f03535c9e778675381c30
Diffstat (limited to 'operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0')
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/desc.json18
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/input-0.json35
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/test.json60
3 files changed, 113 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/desc.json
new file mode 100644
index 000000000..dd015a99d
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/desc.json
@@ -0,0 +1,18 @@
+{
+ "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": "Output DType is UINT16 and zero point not 0 or 32678"
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/input-0.json
new file mode 100644
index 000000000..5bd459ac1
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/input-0.json
@@ -0,0 +1,35 @@
+{
+ "type": "int32",
+ "data": [
+ -32331,
+ 14746,
+ 3144,
+ -4925,
+ -4844,
+ -25753,
+ 4067,
+ 9381,
+ -808,
+ 2653,
+ 2579,
+ 2496,
+ 21693,
+ 18342,
+ -28127,
+ -3848,
+ -14741,
+ -31291,
+ -11693,
+ 13219,
+ 15557,
+ -29605,
+ 31907,
+ 25789,
+ 2283,
+ -26443,
+ 30743,
+ -9753,
+ 794,
+ -25692
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/test.json
new file mode 100644
index 000000000..d1cefedb1
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_30_i16_outUINT16_sc0_dr0_pc0/test.json
@@ -0,0 +1,60 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 58,
+ multiplier: [
+ 31446
+ ],
+ shift: [
+ 14
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 30
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 30
+ ],
+ type: "UINT16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}