diff options
Diffstat (limited to 'operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outINT16_sc0_dr0_pc0')
3 files changed, 185 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outINT16_sc0_dr0_pc0/desc.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outINT16_sc0_dr0_pc0/desc.json new file mode 100644 index 000000000..c7603f766 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outINT16_sc0_dr0_pc0/desc.json @@ -0,0 +1,22 @@ +{ + "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": 2, + "expected_failure": true, + "expected_failure_desc": "Input DType is UINT16 and zero point not 0 or 32678", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outINT16_sc0_dr0_pc0/input-0.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outINT16_sc0_dr0_pc0/input-0.json new file mode 100644 index 000000000..98e8c693e --- /dev/null +++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outINT16_sc0_dr0_pc0/input-0.json @@ -0,0 +1,101 @@ +{ + "type": "int32", + "data": [ + [ + 18828, + 3059, + 33469, + 40640, + 3946, + 33731 + ], + [ + 12338, + 622, + 50369, + 24402, + 46485, + 15686 + ], + [ + 55275, + 9117, + 43210, + 45997, + 14029, + 58178 + ], + [ + 60033, + 13421, + 20839, + 50785, + 27369, + 27971 + ], + [ + 13717, + 57233, + 39123, + 33028, + 38378, + 41429 + ], + [ + 15914, + 27183, + 23944, + 39771, + 22181, + 8248 + ], + [ + 57675, + 29242, + 34629, + 56385, + 26565, + 55567 + ], + [ + 14718, + 50200, + 873, + 12028, + 14175, + 6062 + ], + [ + 18533, + 62348, + 10546, + 55907, + 48160, + 33177 + ], + [ + 32383, + 45243, + 18779, + 48974, + 62765, + 53795 + ], + [ + 48038, + 21011, + 39757, + 52219, + 13676, + 62309 + ], + [ + 33473, + 55469, + 25176, + 17642, + 16867, + 49093 + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outINT16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outINT16_sc0_dr0_pc0/test.json new file mode 100644 index 000000000..29831e875 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outINT16_sc0_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: 125, + output_zp: 0, + multiplier: [ + 19454 + ], + shift: [ + 16 + ], + scale32: false, + double_round: false, + per_channel: false + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12, + 6 + ], + type: "UINT16" + }, + { + name: "result-0", + shape: [ + 12, + 6 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |