diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-18 17:38:25 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-18 17:45:02 +0100 |
commit | 7596fd972b49fecfd1c0cc0a425a5d8c64e9c33c (patch) | |
tree | ac92e69126e7c2f27a898930748a3d968b7f8cca /operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1 | |
parent | 99123d66335bc05c7d42b1999ac4671b50706746 (diff) | |
download | conformance_tests-7596fd972b49fecfd1c0cc0a425a5d8c64e9c33c.tar.gz |
Updating RESCALE tests for renaming of out type
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I089ebcbc766f3f68f4ad8e7ca0c3cdf9c92253c6
Diffstat (limited to 'operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1')
4 files changed, 180 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/Conformance-result-0.json new file mode 100644 index 000000000..32366443a --- /dev/null +++ b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/Conformance-result-0.json @@ -0,0 +1,27 @@ +{ + "type": "int32", + "data": [ + -128, + 127, + 127, + -128, + 127, + -128, + 127, + -128, + 127, + 127, + -128, + -128, + 127, + 127, + -128, + -128, + -128, + 127, + -128, + 127, + -128, + 127 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/desc.json b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/desc.json new file mode 100644 index 000000000..7b8f68902 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_22_i48_outi8_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_22_i48_outi8_sc0_dr0_pc1/input-0.json b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/input-0.json new file mode 100644 index 000000000..f1b74148a --- /dev/null +++ b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/input-0.json @@ -0,0 +1,27 @@ +{ + "type": "int64", + "data": [ + -124173097680226, + 27544024667713, + 88918287265342, + -121730239102174, + 3446090007107, + -67960112657539, + 45859156201951, + -107332779220729, + 123019041269339, + 111106218345184, + -88390342852035, + -49746231082311, + 24667052449504, + 61379091125596, + -16140896797263, + -96745392146285, + -111421449062785, + 140671436568758, + -12567260576875, + 104858365415553, + -4960713686569, + 118883106473303 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json new file mode 100644 index 000000000..3954a0f9d --- /dev/null +++ b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json @@ -0,0 +1,102 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: 16, + multiplier: [ + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384, + 16384 + ], + shift: [ + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45, + 45 + ], + scale32: false, + double_round: false, + per_channel: true + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 22 + ], + type: "INT48" + }, + { + name: "result-0", + shape: [ + 22 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |