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 | 498 +++++++++++++++++++++ .../rescale_17x27_u8_outi8_sc1_dr0_pc0/desc.json | 24 + .../input-0.json | 498 +++++++++++++++++++++ .../rescale_17x27_u8_outi8_sc1_dr0_pc0/test.json | 62 +++ 4 files changed, 1082 insertions(+) create mode 100644 operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/Conformance-result-0.json create mode 100644 operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/desc.json create mode 100644 operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/input-0.json create mode 100644 operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/test.json (limited to 'operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0') diff --git a/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/Conformance-result-0.json new file mode 100644 index 000000000..6c0156cd0 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/Conformance-result-0.json @@ -0,0 +1,498 @@ +{ + "type": "int32", + "data": [ + [ + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 123, + 127, + 118, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 122, + 127, + 127, + 105, + 127, + 127, + 95 + ], + [ + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 121, + 114, + 127, + 124, + 127, + 127, + 126, + 127, + 127, + 127, + 112, + 127, + 116, + 127, + 127, + 127, + 102, + 127, + 127, + 127 + ], + [ + 127, + 119, + 113, + 127, + 101, + 127, + 127, + 94, + 127, + 127, + 101, + 127, + 127, + 127, + 105, + 127, + 92, + 127, + 127, + 127, + 92, + 127, + 104, + 127, + 127, + 127, + 127 + ], + [ + 124, + 125, + 108, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 122, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 117, + 127, + 118, + 127, + 127, + 127 + ], + [ + 111, + 127, + 127, + 98, + 127, + 104, + 127, + 127, + 127, + 127, + 115, + 117, + 127, + 127, + 124, + 121, + 99, + 127, + 127, + 127, + 127, + 127, + 100, + 127, + 127, + 127, + 127 + ], + [ + 127, + 127, + 119, + 95, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 92, + 127, + 127, + 127, + 114, + 115, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 116 + ], + [ + 127, + 127, + 127, + 127, + 127, + 127, + 100, + 120, + 127, + 120, + 127, + 127, + 127, + 110, + 127, + 127, + 127, + 127, + 110, + 127, + 126, + 127, + 127, + 106, + 127, + 97, + 127 + ], + [ + 127, + 127, + 127, + 127, + 127, + 127, + 100, + 102, + 127, + 97, + 127, + 94, + 127, + 127, + 117, + 127, + 127, + 102, + 101, + 127, + 127, + 127, + 127, + 96, + 127, + 101, + 127 + ], + [ + 113, + 127, + 127, + 119, + 127, + 91, + 116, + 127, + 127, + 127, + 127, + 110, + 127, + 119, + 127, + 127, + 98, + 101, + 127, + 100, + 127, + 127, + 127, + 127, + 127, + 127, + 109 + ], + [ + 127, + 127, + 113, + 100, + 127, + 102, + 127, + 101, + 127, + 126, + 105, + 101, + 120, + 127, + 102, + 127, + 127, + 127, + 127, + 127, + 127, + 117, + 127, + 127, + 127, + 127, + 127 + ], + [ + 127, + 97, + 110, + 127, + 127, + 127, + 127, + 92, + 97, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 117, + 95, + 100, + 127, + 103, + 127, + 127, + 113, + 127, + 113 + ], + [ + 113, + 127, + 127, + 127, + 120, + 127, + 95, + 127, + 127, + 127, + 127, + 124, + 127, + 127, + 127, + 127, + 127, + 127, + 105, + 127, + 114, + 127, + 127, + 127, + 127, + 127, + 127 + ], + [ + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 104, + 91, + 126, + 101, + 123, + 108, + 127, + 105, + 127, + 127, + 117, + 127, + 127, + 127, + 127, + 127, + 127, + 113, + 127 + ], + [ + 127, + 127, + 127, + 127, + 93, + 127, + 127, + 102, + 127, + 127, + 127, + 127, + 127, + 96, + 127, + 127, + 127, + 120, + 112, + 127, + 127, + 127, + 127, + 127, + 120, + 127, + 127 + ], + [ + 127, + 127, + 117, + 127, + 127, + 108, + 111, + 127, + 127, + 106, + 127, + 116, + 93, + 111, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127 + ], + [ + 127, + 127, + 127, + 111, + 108, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 110, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 97, + 127, + 127 + ], + [ + 104, + 106, + 127, + 127, + 127, + 127, + 120, + 98, + 92, + 103, + 115, + 127, + 127, + 102, + 93, + 127, + 127, + 127, + 101, + 126, + 127, + 120, + 127, + 127, + 127, + 127, + 127 + ] + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/desc.json new file mode 100644 index 000000000..7b8f68902 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/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_17x27_u8_outi8_sc1_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/input-0.json new file mode 100644 index 000000000..692ba74a3 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/input-0.json @@ -0,0 +1,498 @@ +{ + "type": "int32", + "data": [ + [ + 229, + 97, + 60, + 236, + 172, + 195, + 113, + 114, + 99, + 191, + 53, + 249, + 45, + 118, + 80, + 164, + 174, + 235, + 202, + 63, + 52, + 226, + 124, + 24, + 211, + 166, + 6 + ], + [ + 200, + 155, + 157, + 221, + 126, + 118, + 158, + 50, + 38, + 216, + 55, + 129, + 69, + 58, + 153, + 205, + 113, + 35, + 62, + 42, + 225, + 81, + 95, + 18, + 114, + 233, + 104 + ], + [ + 166, + 46, + 36, + 187, + 16, + 114, + 81, + 4, + 135, + 246, + 17, + 208, + 138, + 185, + 24, + 222, + 2, + 232, + 168, + 86, + 1, + 156, + 22, + 155, + 197, + 68, + 61 + ], + [ + 56, + 57, + 29, + 63, + 168, + 77, + 199, + 209, + 194, + 138, + 80, + 238, + 52, + 118, + 116, + 190, + 139, + 204, + 235, + 100, + 223, + 43, + 234, + 45, + 217, + 99, + 246 + ], + [ + 33, + 119, + 230, + 12, + 67, + 21, + 82, + 99, + 158, + 65, + 40, + 43, + 240, + 244, + 56, + 50, + 13, + 245, + 180, + 194, + 74, + 164, + 15, + 173, + 148, + 84, + 181 + ], + [ + 165, + 112, + 47, + 6, + 240, + 72, + 77, + 174, + 65, + 96, + 182, + 152, + 168, + 1, + 115, + 121, + 161, + 38, + 40, + 195, + 172, + 207, + 69, + 255, + 69, + 166, + 41 + ], + [ + 235, + 85, + 205, + 84, + 202, + 116, + 15, + 48, + 174, + 49, + 70, + 138, + 64, + 32, + 159, + 176, + 187, + 241, + 31, + 109, + 59, + 230, + 138, + 25, + 177, + 10, + 70 + ], + [ + 184, + 129, + 194, + 146, + 215, + 144, + 14, + 18, + 198, + 9, + 96, + 4, + 77, + 152, + 44, + 119, + 254, + 18, + 16, + 69, + 211, + 103, + 163, + 8, + 188, + 17, + 182 + ], + [ + 37, + 219, + 75, + 47, + 86, + 0, + 42, + 153, + 76, + 90, + 206, + 31, + 101, + 47, + 123, + 84, + 11, + 17, + 218, + 14, + 200, + 234, + 119, + 79, + 198, + 251, + 30 + ], + [ + 246, + 241, + 36, + 14, + 183, + 19, + 153, + 16, + 176, + 59, + 24, + 17, + 48, + 138, + 19, + 205, + 154, + 76, + 252, + 168, + 172, + 44, + 181, + 143, + 252, + 122, + 173 + ], + [ + 87, + 10, + 32, + 221, + 188, + 93, + 178, + 1, + 9, + 129, + 159, + 239, + 194, + 65, + 208, + 125, + 211, + 44, + 6, + 14, + 253, + 20, + 240, + 186, + 37, + 221, + 36 + ], + [ + 36, + 147, + 73, + 74, + 49, + 155, + 6, + 62, + 141, + 124, + 179, + 55, + 165, + 194, + 99, + 65, + 142, + 148, + 24, + 144, + 39, + 145, + 238, + 137, + 194, + 79, + 236 + ], + [ + 208, + 234, + 189, + 166, + 134, + 237, + 217, + 106, + 21, + 0, + 59, + 16, + 54, + 28, + 251, + 24, + 160, + 90, + 44, + 179, + 248, + 202, + 249, + 151, + 172, + 37, + 218 + ], + [ + 191, + 65, + 90, + 156, + 3, + 209, + 71, + 19, + 84, + 213, + 70, + 138, + 207, + 8, + 194, + 73, + 178, + 48, + 35, + 201, + 206, + 251, + 173, + 119, + 49, + 75, + 165 + ], + [ + 88, + 123, + 43, + 112, + 60, + 28, + 33, + 132, + 93, + 25, + 131, + 42, + 3, + 33, + 114, + 244, + 61, + 72, + 62, + 90, + 183, + 82, + 168, + 229, + 242, + 144, + 182 + ], + [ + 235, + 201, + 76, + 33, + 29, + 225, + 142, + 75, + 88, + 72, + 205, + 156, + 225, + 77, + 120, + 31, + 248, + 131, + 141, + 105, + 69, + 242, + 125, + 172, + 9, + 70, + 205 + ], + [ + 22, + 25, + 207, + 79, + 70, + 144, + 49, + 11, + 1, + 20, + 40, + 178, + 76, + 18, + 3, + 122, + 215, + 86, + 16, + 58, + 127, + 48, + 250, + 195, + 88, + 243, + 83 + ] + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/test.json new file mode 100644 index 000000000..a3d139a84 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_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: 35, + output_zp: 112, + multiplier: [ + 1277242752 + ], + shift: [ + 31 + ], + scale32: true, + double_round: false, + per_channel: false + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 17, + 27 + ], + type: "UINT8" + }, + { + name: "result-0", + shape: [ + 17, + 27 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1