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 --- .../rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json | 122 +++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 operators/type_conversion/rescale/rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json (limited to 'operators/type_conversion/rescale/rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json') diff --git a/operators/type_conversion/rescale/rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json new file mode 100644 index 000000000..51d4670bb --- /dev/null +++ b/operators/type_conversion/rescale/rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json @@ -0,0 +1,122 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: 39, + multiplier: [ + 1286045696, + 1714056960, + 1135324800, + 1406797056, + 1471500416, + 1098648192, + 1645916928, + 2044121600, + 1738707968, + 1817982848, + 1963192448, + 1204059904, + 1196176512, + 1534918528, + 1326809600, + 1745543424, + 1739776256, + 1302902016, + 1918965888, + 1828214016, + 1975735168, + 1155238912, + 2116175872, + 1753184000, + 1706836736, + 1433614080, + 2111551872, + 1896499584, + 1592443520, + 1500685824, + 1572148992 + ], + shift: [ + 38, + 38, + 42, + 40, + 39, + 39, + 39, + 38, + 41, + 39, + 39, + 39, + 39, + 38, + 38, + 38, + 39, + 38, + 38, + 38, + 38, + 39, + 38, + 38, + 38, + 38, + 38, + 39, + 38, + 38, + 38 + ], + scale32: true, + double_round: true, + per_channel: true + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 24, + 31 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 24, + 31 + ], + type: "UINT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1