diff options
Diffstat (limited to 'operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16')
4 files changed, 147 insertions, 0 deletions
diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/desc.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/desc.json new file mode 100644 index 000000000..33c84b150 --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/desc.json @@ -0,0 +1,24 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "Input data type not supported for this operator", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/input-0.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/input-0.json new file mode 100644 index 000000000..b595f9ad4 --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/input-0.json @@ -0,0 +1,50 @@ +{ + "type": "float16", + "data": [ + [ + 0.60546875, + 0.25390625, + 0.71240234375, + 0.64892578125, + 0.50927734375, + 0.55517578125, + 0.227294921875, + 0.0219268798828125, + 0.80078125, + 0.88916015625, + 0.77783203125, + 0.7080078125, + 0.471923828125 + ], + [ + 0.583984375, + 0.69140625, + 0.0262298583984375, + 0.423583984375, + 0.2247314453125, + 0.364501953125, + 0.7490234375, + 0.36328125, + 0.7392578125, + 0.9716796875, + 0.92333984375, + 0.82763671875, + 0.85302734375 + ], + [ + 0.39404296875, + 0.7314453125, + 0.6669921875, + 0.98291015625, + 0.57470703125, + 0.4296875, + 0.83740234375, + 0.74951171875, + 0.1248779296875, + 0.59619140625, + 0.59228515625, + 0.6318359375, + 0.94140625 + ] + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/input-1.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/input-1.json new file mode 100644 index 000000000..6e4d49ad5 --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/input-1.json @@ -0,0 +1,14 @@ +{ + "type": "int32", + "data": [ + [ + 10 + ], + [ + 19 + ], + [ + 19 + ] + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/test.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/test.json new file mode 100644 index 000000000..601d81aaf --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputType_3x13_f16/test.json @@ -0,0 +1,59 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "LOGICAL_LEFT_SHIFT", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 3, + 13 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 3, + 1 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 3, + 13 + ], + type: "FP16" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |