aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_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_26_i16_outINT8_sc1_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_26_i16_outINT8_sc1_dr0_pc0')
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/Conformance-result-0.json31
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/desc.json20
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/input-0.json31
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/test.json60
4 files changed, 142 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/Conformance-result-0.json
new file mode 100644
index 000000000..68b71c090
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/Conformance-result-0.json
@@ -0,0 +1,31 @@
+{
+ "type": "int32",
+ "data": [
+ -22,
+ -33,
+ -12,
+ -33,
+ -25,
+ -36,
+ -32,
+ -15,
+ 5,
+ 1,
+ -31,
+ -34,
+ -20,
+ -5,
+ 0,
+ 3,
+ -19,
+ -28,
+ -34,
+ -29,
+ -33,
+ 5,
+ -23,
+ 3,
+ -9,
+ -10
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/desc.json
new file mode 100644
index 000000000..3cd43b509
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/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/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/input-0.json
new file mode 100644
index 000000000..700e09334
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/input-0.json
@@ -0,0 +1,31 @@
+{
+ "type": "int32",
+ "data": [
+ -14381,
+ -28344,
+ 657,
+ -29308,
+ -17912,
+ -32735,
+ -27079,
+ -4174,
+ 22984,
+ 17997,
+ -26292,
+ -30485,
+ -10612,
+ 9978,
+ 16169,
+ 21176,
+ -10342,
+ -21758,
+ -31042,
+ -23144,
+ -28498,
+ 23645,
+ -15178,
+ 21176,
+ 3483,
+ 2552
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_dr0_pc0/test.json
new file mode 100644
index 000000000..c043d8da0
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_26_i16_outINT8_sc1_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: -12,
+ multiplier: [
+ 1593537280
+ ],
+ shift: [
+ 41
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 26
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 26
+ ],
+ type: "INT8"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}