From 7596fd972b49fecfd1c0cc0a425a5d8c64e9c33c Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Tue, 18 Oct 2022 17:38:25 +0100 Subject: Updating RESCALE tests for renaming of out type Signed-off-by: Jeremy Johnson Change-Id: I089ebcbc766f3f68f4ad8e7ca0c3cdf9c92253c6 --- .../Conformance-result-0.json | 31 ++++++ .../rescale_26_i16_outi16_sc0_dr0_pc1/desc.json | 24 +++++ .../rescale_26_i16_outi16_sc0_dr0_pc1/input-0.json | 31 ++++++ .../rescale_26_i16_outi16_sc0_dr0_pc1/test.json | 110 +++++++++++++++++++++ 4 files changed, 196 insertions(+) create mode 100644 operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/Conformance-result-0.json create mode 100644 operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/desc.json create mode 100644 operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/input-0.json create mode 100644 operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/test.json (limited to 'operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1') diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/Conformance-result-0.json new file mode 100644 index 000000000..003750303 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/Conformance-result-0.json @@ -0,0 +1,31 @@ +{ + "type": "int32", + "data": [ + 14584, + -17128, + 10847, + 7695, + -10625, + 2216, + 480, + -1538, + 7900, + -2329, + -848, + -2525, + 14887, + 2246, + -6554, + 25940, + 11825, + 18973, + 794, + -6725, + 7020, + -10338, + -8692, + -15, + 1185, + 3029 + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/desc.json b/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/desc.json new file mode 100644 index 000000000..7b8f68902 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_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_outi16_sc0_dr0_pc1/input-0.json b/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/input-0.json new file mode 100644 index 000000000..54f919415 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/input-0.json @@ -0,0 +1,31 @@ +{ + "type": "int32", + "data": [ + 31580, + -26000, + 19564, + 23995, + -30733, + 5854, + 5072, + -9263, + 10925, + -5986, + -3953, + -4488, + 19704, + 8726, + -7927, + 27968, + 19795, + 28362, + 15106, + -7112, + 17887, + -11190, + -15013, + -3209, + 30756, + 4452 + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/test.json new file mode 100644 index 000000000..40e5c1f42 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_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: 0, + multiplier: [ + 30266, + 21586, + 18167, + 21018, + 22658, + 24811, + 24809, + 21766, + 23695, + 25500, + 28120, + 18438, + 24758, + 16870, + 27092, + 30392, + 19575, + 21920, + 27565, + 30983, + 25722, + 30274, + 18972, + 19373, + 20207, + 22296 + ], + shift: [ + 16, + 15, + 15, + 16, + 16, + 16, + 18, + 17, + 15, + 16, + 17, + 15, + 15, + 16, + 15, + 15, + 15, + 15, + 19, + 15, + 16, + 15, + 15, + 22, + 19, + 15 + ], + scale32: false, + 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: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1