diff options
Diffstat (limited to 'operators/image/resize/resize_ERRORIF_ChannelMismatch_1x1x2x9_f32_modeB_outf32_sc3x1x2x1_off0x0_bor2x0')
3 files changed, 127 insertions, 0 deletions
diff --git a/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x1x2x9_f32_modeB_outf32_sc3x1x2x1_off0x0_bor2x0/desc.json b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x1x2x9_f32_modeB_outf32_sc3x1x2x1_off0x0_bor2x0/desc.json new file mode 100644 index 000000000..2a7e056fa --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x1x2x9_f32_modeB_outf32_sc3x1x2x1_off0x0_bor2x0/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": "Input channel size not equal to output channel size", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x1x2x9_f32_modeB_outf32_sc3x1x2x1_off0x0_bor2x0/input-0.json b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x1x2x9_f32_modeB_outf32_sc3x1x2x1_off0x0_bor2x0/input-0.json new file mode 100644 index 000000000..7e2951581 --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x1x2x9_f32_modeB_outf32_sc3x1x2x1_off0x0_bor2x0/input-0.json @@ -0,0 +1,31 @@ +{ + "type": "float32", + "data": [ + [ + [ + [ + 0.5399979948997498, + 0.14128504693508148, + 0.07395929843187332, + 0.5195769667625427, + 0.5512428879737854, + 0.6732667684555054, + 0.9957131743431091, + 0.8313038349151611, + 0.06038220599293709 + ], + [ + 0.44110068678855896, + 0.59166419506073, + 0.14907236397266388, + 0.6524572372436523, + 0.6220393180847168, + 0.5858302116394043, + 0.53708416223526, + 0.2908266484737396, + 0.04176229611039162 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x1x2x9_f32_modeB_outf32_sc3x1x2x1_off0x0_bor2x0/test.json b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x1x2x9_f32_modeB_outf32_sc3x1x2x1_off0x0_bor2x0/test.json new file mode 100644 index 000000000..8d8373522 --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_ChannelMismatch_1x1x2x9_f32_modeB_outf32_sc3x1x2x1_off0x0_bor2x0/test.json @@ -0,0 +1,75 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "RESIZE", + attribute_type: "ResizeAttribute", + attribute: { + scale: [ + 3, + 1, + 2, + 1 + ], + offset: [ + 0, + 0 + ], + border: [ + 2, + 0 + ], + mode: "BILINEAR" + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 1, + 2, + 9 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 1, + 3, + 3, + 16 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |