diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-18 17:38:25 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-18 17:45:02 +0100 |
commit | 7596fd972b49fecfd1c0cc0a425a5d8c64e9c33c (patch) | |
tree | ac92e69126e7c2f27a898930748a3d968b7f8cca /operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1 | |
parent | 99123d66335bc05c7d42b1999ac4671b50706746 (diff) | |
download | conformance_tests-7596fd972b49fecfd1c0cc0a425a5d8c64e9c33c.tar.gz |
Updating RESCALE tests for renaming of out type
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I089ebcbc766f3f68f4ad8e7ca0c3cdf9c92253c6
Diffstat (limited to 'operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1')
4 files changed, 196 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/Conformance-result-0.json new file mode 100644 index 000000000..9091c14de --- /dev/null +++ b/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/Conformance-result-0.json @@ -0,0 +1,31 @@ +{ + "type": "int32", + "data": [ + -77, + -113, + -128, + -97, + 15, + -100, + -128, + -128, + -55, + -128, + -104, + -89, + -81, + -82, + -118, + -128, + -128, + -128, + -128, + -53, + -128, + -104, + -100, + 36, + -128, + -71 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/desc.json b/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/desc.json new file mode 100644 index 000000000..7b8f68902 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/desc.json @@ -0,0 +1,24 @@ +{ + "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" + ], + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/input-0.json b/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/input-0.json new file mode 100644 index 000000000..4140de232 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/input-0.json @@ -0,0 +1,31 @@ +{ + "type": "int32", + "data": [ + 20919, + -5021, + -6916, + 2988, + 15584, + 5737, + -15896, + -11319, + 16536, + -19565, + 273, + 2542, + 16401, + 14047, + -2315, + -12507, + -8658, + -5795, + -18404, + 8218, + -19112, + 9743, + 16481, + 30267, + -24976, + 17021 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/test.json new file mode 100644 index 000000000..30c822df3 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/test.json @@ -0,0 +1,110 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: -106, + multiplier: [ + 1514331264, + 1506215040, + 1767610112, + 1711572864, + 2126843008, + 1178635776, + 1403466112, + 1927278592, + 1687570688, + 1879229056, + 2095075712, + 1874450304, + 1651850240, + 1896639744, + 1408907904, + 1241604480, + 1577810176, + 1216379136, + 1183067520, + 1779291008, + 1525857536, + 1826410112, + 1699403008, + 1291836928, + 2088179072, + 1117484544 + ], + shift: [ + 40, + 40, + 38, + 39, + 38, + 40, + 38, + 39, + 39, + 38, + 38, + 38, + 40, + 40, + 38, + 39, + 38, + 38, + 38, + 38, + 38, + 43, + 42, + 38, + 39, + 39 + ], + scale32: true, + double_round: false, + per_channel: true + }, + 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" + ] + } + ] +} |