diff options
Diffstat (limited to 'operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1')
4 files changed, 204 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/Conformance-result-0.json new file mode 100644 index 000000000..e09e5eadd --- /dev/null +++ b/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/Conformance-result-0.json @@ -0,0 +1,33 @@ +{ + "type": "int32", + "data": [ + 86, + 73, + -50, + 8, + 82, + 52, + 98, + 27, + -29, + 5, + -31, + 101, + 100, + -99, + 55, + -46, + 30, + 16, + -1, + 77, + 103, + 27, + 68, + 71, + 15, + 50, + 83, + -55 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/desc.json b/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/desc.json new file mode 100644 index 000000000..7b8f68902 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_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_28_i8_outi8_sc1_dr1_pc1/input-0.json b/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/input-0.json new file mode 100644 index 000000000..f391bf029 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/input-0.json @@ -0,0 +1,33 @@ +{ + "type": "int32", + "data": [ + 85, + 65, + -118, + -17, + -6, + -8, + 107, + -90, + -50, + -82, + -66, + 104, + 112, + -117, + 33, + -69, + -79, + -54, + -79, + -3, + 126, + 22, + 57, + -2, + -125, + -107, + -60, + -66 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/test.json new file mode 100644 index 000000000..bbb75e1dc --- /dev/null +++ b/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/test.json @@ -0,0 +1,114 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 87, + output_zp: 87, + multiplier: [ + 1369211264, + 1394036992, + 1439250560, + 1638321792, + 1996592256, + 1574571008, + 1158626304, + 1453659520, + 1813504512, + 2072633088, + 1650615168, + 1829689344, + 1084031488, + 1953248512, + 1260839040, + 1825950208, + 1462826368, + 2142402560, + 1141196544, + 1803537792, + 1711769984, + 1969967616, + 1354701952, + 1524769920, + 1455373824, + 1645857280, + 1705832576, + 1991706112 + ], + shift: [ + 31, + 31, + 31, + 31, + 35, + 32, + 31, + 32, + 31, + 32, + 31, + 31, + 31, + 31, + 31, + 31, + 32, + 32, + 31, + 34, + 32, + 31, + 31, + 33, + 32, + 33, + 36, + 31 + ], + scale32: true, + double_round: true, + per_channel: true + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 28 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 28 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |