diff options
Diffstat (limited to 'operators/image/resize/resize_ERRORIF_BorderSmallerMin_1x1x1x3_f16_modeB_outf16_sc4x1x3x1_off0x0_bor-67x0')
3 files changed, 110 insertions, 0 deletions
diff --git a/operators/image/resize/resize_ERRORIF_BorderSmallerMin_1x1x1x3_f16_modeB_outf16_sc4x1x3x1_off0x0_bor-67x0/desc.json b/operators/image/resize/resize_ERRORIF_BorderSmallerMin_1x1x1x3_f16_modeB_outf16_sc4x1x3x1_off0x0_bor-67x0/desc.json new file mode 100644 index 000000000..d24f851aa --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_BorderSmallerMin_1x1x1x3_f16_modeB_outf16_sc4x1x3x1_off0x0_bor-67x0/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": "Border value smaller than minimum value", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_BorderSmallerMin_1x1x1x3_f16_modeB_outf16_sc4x1x3x1_off0x0_bor-67x0/input-0.json b/operators/image/resize/resize_ERRORIF_BorderSmallerMin_1x1x1x3_f16_modeB_outf16_sc4x1x3x1_off0x0_bor-67x0/input-0.json new file mode 100644 index 000000000..36adce0eb --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_BorderSmallerMin_1x1x1x3_f16_modeB_outf16_sc4x1x3x1_off0x0_bor-67x0/input-0.json @@ -0,0 +1,14 @@ +{ + "type": "float16", + "data": [ + [ + [ + [ + 0.79541015625, + 0.5146484375, + 0.26220703125 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_BorderSmallerMin_1x1x1x3_f16_modeB_outf16_sc4x1x3x1_off0x0_bor-67x0/test.json b/operators/image/resize/resize_ERRORIF_BorderSmallerMin_1x1x1x3_f16_modeB_outf16_sc4x1x3x1_off0x0_bor-67x0/test.json new file mode 100644 index 000000000..b1810fa8b --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_BorderSmallerMin_1x1x1x3_f16_modeB_outf16_sc4x1x3x1_off0x0_bor-67x0/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: [ + 4, + 1, + 3, + 1 + ], + offset: [ + 0, + 0 + ], + border: [ + -67, + 0 + ], + mode: "BILINEAR" + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 1, + 1, + 3 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 1, + 1, + 1, + 3 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |