diff options
Diffstat (limited to 'operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x5_i8_outi48')
3 files changed, 87 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x5_i8_outi48/desc.json b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x5_i8_outi48/desc.json new file mode 100644 index 000000000..d57e8394e --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x5_i8_outi48/desc.json @@ -0,0 +1,21 @@ +{ + "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": "Output data type not supported for this configuration of operator", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x5_i8_outi48/input-0.json b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x5_i8_outi48/input-0.json new file mode 100644 index 000000000..aa6696346 --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x5_i8_outi48/input-0.json @@ -0,0 +1,12 @@ +{ + "type": "int32", + "data": [ + [ + 115, + 106, + 88, + 46, + 10 + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x5_i8_outi48/test.json b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x5_i8_outi48/test.json new file mode 100644 index 000000000..b7ae75e7e --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_1x5_i8_outi48/test.json @@ -0,0 +1,54 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "CAST", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 5 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 1, + 5 + ], + type: "INT48" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |