From f1e20a471670b0b0b20fff7de176cfdc1bf8ad8a Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:08:54 +0100 Subject: Updating RESCALE tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I411332528a9e94c4fa9f03535c9e778675381c30 --- .../Conformance-result-0.json | 33 ++++++++++++ .../rescale_28_i8_outUINT8_sc0_dr0_pc0/desc.json | 20 ++++++++ .../input-0.json | 33 ++++++++++++ .../rescale_28_i8_outUINT8_sc0_dr0_pc0/test.json | 60 ++++++++++++++++++++++ 4 files changed, 146 insertions(+) create mode 100644 operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/Conformance-result-0.json create mode 100644 operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/desc.json create mode 100644 operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/input-0.json create mode 100644 operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/test.json (limited to 'operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0') diff --git a/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/Conformance-result-0.json new file mode 100644 index 000000000..22c71d4c1 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/Conformance-result-0.json @@ -0,0 +1,33 @@ +{ + "type": "int32", + "data": [ + 184, + 201, + 208, + 112, + 187, + 123, + 143, + 207, + 139, + 202, + 164, + 137, + 149, + 172, + 199, + 181, + 218, + 211, + 197, + 180, + 144, + 158, + 124, + 153, + 218, + 160, + 124, + 186 + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/desc.json @@ -0,0 +1,20 @@ +{ + "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" + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/input-0.json new file mode 100644 index 000000000..0ade56829 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/input-0.json @@ -0,0 +1,33 @@ +{ + "type": "int32", + "data": [ + 34, + 72, + 88, + -124, + 41, + -101, + -55, + 84, + -64, + 75, + -10, + -69, + -43, + 7, + 67, + 27, + 110, + 94, + 64, + 26, + -54, + -23, + -98, + -33, + 109, + -19, + -99, + 38 + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/test.json new file mode 100644 index 000000000..3cb778aea --- /dev/null +++ b/operators/type_conversion/rescale/rescale_28_i8_outUINT8_sc0_dr0_pc0/test.json @@ -0,0 +1,60 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 118, + output_zp: 222, + multiplier: [ + 29747 + ], + shift: [ + 16 + ], + scale32: false, + double_round: false, + per_channel: false + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 28 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 28 + ], + type: "UINT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1