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 --- .../desc.json | 22 ++++ .../input-0.json | 135 +++++++++++++++++++++ .../test.json | 62 ++++++++++ 3 files changed, 219 insertions(+) create mode 100644 operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/desc.json create mode 100644 operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/input-0.json create mode 100644 operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/test.json (limited to 'operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0') diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/desc.json new file mode 100644 index 000000000..bf7c1974a --- /dev/null +++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/desc.json @@ -0,0 +1,22 @@ +{ + "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": 2, + "expected_failure": true, + "expected_failure_desc": "Op input list does not match expected input", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/input-0.json new file mode 100644 index 000000000..3c6c95c2e --- /dev/null +++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/input-0.json @@ -0,0 +1,135 @@ +{ + "type": "int32", + "data": [ + [ + 20400, + -2670, + -13398, + 22981, + 3889, + -4692, + 29584, + 14452, + 14146, + 9867, + 5980 + ], + [ + -13071, + -5944, + -25502, + 17062, + -25490, + 20644, + -25930, + -17290, + 13964, + 28003, + 28450 + ], + [ + 13443, + 6698, + -8816, + -18103, + -11580, + -6944, + 7231, + 23895, + -12615, + 15259, + 13887 + ], + [ + 22498, + 5117, + 1079, + -826, + -31628, + 27522, + -31181, + -22862, + -2966, + 20043, + -4958 + ], + [ + 6745, + -11507, + -32473, + -528, + 29342, + 4839, + 25960, + -10560, + 11487, + -31436, + 8110 + ], + [ + -29322, + 25667, + 5475, + 20462, + -30839, + -17854, + 32573, + 11443, + -7584, + -27032, + -5827 + ], + [ + -18051, + 26677, + -17918, + 4209, + 28905, + -5187, + 5437, + 21098, + -10633, + -15625, + 6177 + ], + [ + 11233, + -13687, + 27290, + -29386, + -21455, + -26829, + 3970, + 13648, + -13801, + 7172, + 13410 + ], + [ + -20753, + 12212, + 19994, + -19772, + -28235, + 10309, + 31625, + -10934, + 17071, + -4863, + -20952 + ], + [ + 8430, + 22956, + 4224, + 235, + -16459, + -22771, + 1097, + -7965, + 5467, + 462, + -30996 + ] + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/test.json new file mode 100644 index 000000000..6e0a7f765 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10x11_i16_outi16_sc0_dr0_pc0/test.json @@ -0,0 +1,62 @@ +{ + 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: [ + 19472 + ], + shift: [ + 15 + ], + scale32: false, + double_round: false, + per_channel: false + }, + inputs: [ + + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 11 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 10, + 11 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1