diff options
Diffstat (limited to 'operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1')
4 files changed, 850 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/Conformance-result-0.json new file mode 100644 index 000000000..68733568b --- /dev/null +++ b/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/Conformance-result-0.json @@ -0,0 +1,366 @@ +{ + "type": "int32", + "data": [ + [ + 210, + 212, + 187, + 213, + 92, + 252, + 167, + 112, + 167, + 223, + 222, + 145, + 154, + 204, + 179, + 186, + 174 + ], + [ + 206, + 118, + 237, + 201, + 200, + 238, + 215, + 218, + 165, + 179, + 213, + 210, + 206, + 136, + 167, + 178, + 167 + ], + [ + 208, + 87, + 128, + 198, + 114, + 253, + 202, + 248, + 172, + 203, + 223, + 168, + 192, + 195, + 224, + 221, + 197 + ], + [ + 209, + 231, + 201, + 204, + 188, + 171, + 139, + 160, + 201, + 219, + 195, + 148, + 250, + 170, + 123, + 211, + 176 + ], + [ + 206, + 225, + 225, + 207, + 143, + 228, + 132, + 207, + 198, + 216, + 180, + 218, + 77, + 209, + 82, + 206, + 158 + ], + [ + 215, + 211, + 124, + 214, + 122, + 170, + 120, + 77, + 171, + 200, + 191, + 221, + 104, + 207, + 71, + 191, + 156 + ], + [ + 202, + 176, + 229, + 210, + 226, + 179, + 116, + 125, + 216, + 174, + 151, + 219, + 86, + 253, + 210, + 207, + 190 + ], + [ + 201, + 143, + 217, + 215, + 156, + 224, + 213, + 67, + 200, + 204, + 191, + 212, + 233, + 164, + 129, + 221, + 230 + ], + [ + 211, + 187, + 124, + 205, + 112, + 165, + 219, + 101, + 229, + 179, + 152, + 233, + 92, + 204, + 211, + 192, + 146 + ], + [ + 205, + 76, + 199, + 214, + 251, + 217, + 213, + 234, + 212, + 206, + 232, + 165, + 148, + 242, + 127, + 191, + 154 + ], + [ + 204, + 177, + 227, + 200, + 196, + 211, + 229, + 208, + 165, + 197, + 228, + 226, + 183, + 253, + 193, + 181, + 225 + ], + [ + 202, + 137, + 142, + 211, + 83, + 188, + 225, + 215, + 176, + 218, + 175, + 203, + 165, + 60, + 70, + 186, + 227 + ], + [ + 215, + 142, + 238, + 198, + 246, + 113, + 114, + 210, + 182, + 187, + 211, + 166, + 209, + 87, + 85, + 192, + 197 + ], + [ + 203, + 90, + 209, + 207, + 153, + 115, + 111, + 66, + 205, + 176, + 165, + 227, + 136, + 206, + 133, + 219, + 217 + ], + [ + 207, + 195, + 165, + 215, + 140, + 224, + 191, + 186, + 180, + 215, + 210, + 217, + 218, + 79, + 231, + 215, + 163 + ], + [ + 215, + 164, + 153, + 202, + 141, + 77, + 201, + 199, + 204, + 200, + 175, + 207, + 230, + 64, + 141, + 222, + 220 + ], + [ + 216, + 98, + 172, + 200, + 228, + 165, + 141, + 74, + 209, + 214, + 222, + 233, + 220, + 215, + 219, + 222, + 183 + ], + [ + 212, + 221, + 126, + 210, + 137, + 94, + 131, + 79, + 222, + 212, + 152, + 197, + 193, + 157, + 182, + 218, + 188 + ], + [ + 210, + 173, + 163, + 214, + 150, + 217, + 189, + 195, + 211, + 210, + 193, + 196, + 165, + 118, + 204, + 217, + 206 + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/desc.json b/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/desc.json new file mode 100644 index 000000000..7b8f68902 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_19x17_i8_outu8_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_19x17_i8_outu8_sc0_dr0_pc1/input-0.json b/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/input-0.json new file mode 100644 index 000000000..b2b85a135 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/input-0.json @@ -0,0 +1,366 @@ +{ + "type": "int32", + "data": [ + [ + 31, + 69, + 20, + 82, + -108, + 125, + -17, + -57, + -82, + 124, + 98, + -95, + -15, + 59, + 23, + -80, + -36 + ], + [ + -34, + -55, + 117, + -77, + 52, + 105, + 75, + 76, + -88, + -94, + 72, + 63, + 61, + -21, + 6, + -125, + -54 + ], + [ + 7, + -96, + -95, + -117, + -75, + 126, + 50, + 114, + -63, + 25, + 100, + -38, + 40, + 49, + 85, + 120, + 29 + ], + [ + 21, + 94, + 47, + -36, + 33, + 12, + -70, + 4, + 31, + 103, + 20, + -86, + 124, + 19, + -55, + 65, + -30 + ], + [ + -34, + 86, + 94, + 6, + -33, + 92, + -84, + 63, + 21, + 90, + -21, + 84, + -125, + 66, + -111, + 36, + -79 + ], + [ + 118, + 68, + -102, + 100, + -64, + 11, + -107, + -101, + -67, + 8, + 10, + 91, + -86, + 63, + -127, + -54, + -84 + ], + [ + -97, + 21, + 102, + 42, + 90, + 23, + -115, + -40, + 82, + -117, + -104, + 85, + -112, + 117, + 66, + 42, + 9 + ], + [ + -106, + -22, + 78, + 103, + -14, + 86, + 70, + -114, + 30, + 29, + 10, + 69, + 99, + 12, + -46, + 123, + 118 + ], + [ + 47, + 36, + -102, + -26, + -78, + 3, + 83, + -71, + 127, + -95, + -103, + 121, + -103, + 60, + 67, + -44, + -112 + ], + [ + -50, + -111, + 44, + 99, + 127, + 76, + 70, + 97, + 69, + 38, + 127, + -46, + -23, + 104, + -49, + -52, + -90 + ], + [ + -58, + 23, + 98, + -94, + 46, + 68, + 101, + 64, + -89, + -3, + 115, + 104, + 28, + 118, + 43, + -112, + 105 + ], + [ + -85, + -31, + -68, + 56, + -121, + 35, + 93, + 73, + -50, + 101, + -36, + 46, + 1, + -111, + -128, + -82, + 111 + ], + [ + 116, + -24, + 119, + -116, + 119, + -69, + -119, + 66, + -31, + -54, + 66, + -43, + 64, + -79, + -107, + -45, + 28 + ], + [ + -71, + -92, + 63, + -2, + -18, + -67, + -124, + -115, + 46, + -108, + -65, + 105, + -40, + 62, + -41, + 110, + 82 + ], + [ + -8, + 47, + -23, + 113, + -37, + 86, + 29, + 36, + -39, + 85, + 63, + 80, + 77, + -88, + 96, + 87, + -66 + ], + [ + 123, + 6, + -46, + -71, + -35, + -119, + 48, + 53, + 42, + 12, + -36, + 57, + 95, + -106, + -30, + 126, + 92 + ], + [ + 126, + -82, + -9, + -95, + 93, + 4, + -66, + -105, + 60, + 79, + 97, + 120, + 80, + 73, + 79, + 127, + -10 + ], + [ + 66, + 81, + -99, + 48, + -42, + -95, + -85, + -99, + 101, + 69, + -102, + 32, + 41, + 4, + 27, + 104, + 4 + ], + [ + 40, + 18, + -27, + 100, + -23, + 76, + 26, + 47, + 66, + 60, + 16, + 29, + 2, + -42, + 58, + 96, + 52 + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/test.json new file mode 100644 index 000000000..b44ef4693 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/test.json @@ -0,0 +1,94 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 69, + output_zp: 212, + multiplier: [ + 16398, + 24738, + 16835, + 19580, + 22250, + 23480, + 17158, + 26011, + 19677, + 26464, + 22986, + 26873, + 22804, + 27706, + 23623, + 22805, + 24000 + ], + shift: [ + 18, + 15, + 15, + 18, + 15, + 15, + 15, + 15, + 16, + 17, + 16, + 16, + 15, + 15, + 15, + 17, + 16 + ], + scale32: false, + double_round: false, + per_channel: true + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 19, + 17 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 19, + 17 + ], + type: "UINT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |