From f1e20a471670b0b0b20fff7de176cfdc1bf8ad8a Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:08:54 +0100 Subject: Updating RESCALE tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I411332528a9e94c4fa9f03535c9e778675381c30 --- .../Conformance-result-0.json | 28 ++++++++++ .../rescale_23_i32_outINT16_sc1_dr1_pc0/desc.json | 20 ++++++++ .../input-0.json | 28 ++++++++++ .../rescale_23_i32_outINT16_sc1_dr1_pc0/test.json | 60 ++++++++++++++++++++++ 4 files changed, 136 insertions(+) create mode 100644 operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/Conformance-result-0.json create mode 100644 operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/desc.json create mode 100644 operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/input-0.json create mode 100644 operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/test.json (limited to 'operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0') diff --git a/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/Conformance-result-0.json new file mode 100644 index 000000000..7ea7eec53 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/Conformance-result-0.json @@ -0,0 +1,28 @@ +{ + "type": "int32", + "data": [ + 732, + -569, + -1402, + 1642, + 1332, + -1206, + 419, + 554, + -105, + 1992, + -1755, + -1130, + -1891, + 901, + 672, + 2275, + 198, + -1631, + -229, + -1922, + 798, + 813, + 1670 + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/desc.json b/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_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_23_i32_outINT16_sc1_dr1_pc0/input-0.json b/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/input-0.json new file mode 100644 index 000000000..58ae5b1a2 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/input-0.json @@ -0,0 +1,28 @@ +{ + "type": "int32", + "data": [ + 672919389, + -523124771, + -1289335440, + 1510635272, + 1225376023, + -1109391780, + 385824546, + 509643447, + -96791558, + 1832535792, + -1614475141, + -1039837313, + -1739338794, + 828613397, + 618516962, + 2092991765, + 181739436, + -1500668930, + -210961943, + -1767798701, + 734061491, + 748162654, + 1536097624 + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_pc0/test.json new file mode 100644 index 000000000..e94d01d5d --- /dev/null +++ b/operators/type_conversion/rescale/rescale_23_i32_outINT16_sc1_dr1_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: 0, + multiplier: [ + 1223970816 + ], + shift: [ + 50 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 23 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 23 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1