diff options
Diffstat (limited to 'operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16')
3 files changed, 136 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/desc.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/desc.json new file mode 100644 index 000000000..bf7c1974a --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/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": "Op input list does not match expected input", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/input-0.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/input-0.json new file mode 100644 index 000000000..d9dbd7ec1 --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/input-0.json @@ -0,0 +1,65 @@ +{ + "type": "bool", + "data": [ + [ + false, + false, + false + ], + [ + true, + true, + true + ], + [ + false, + false, + true + ], + [ + true, + true, + false + ], + [ + false, + false, + true + ], + [ + false, + true, + true + ], + [ + true, + true, + true + ], + [ + false, + true, + true + ], + [ + true, + false, + false + ], + [ + false, + true, + true + ], + [ + true, + false, + false + ], + [ + true, + false, + true + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/test.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/test.json new file mode 100644 index 000000000..d626d0ae9 --- /dev/null +++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/test.json @@ -0,0 +1,49 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CAST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12, + 3 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 12, + 3 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |