diff options
Diffstat (limited to 'operators/image/resize/resize_ERRORIF_BorderLargerEqualMax_1x4x3x7_f32_modeB_outf32_sc3x1x2x1_off0x0_bor0x3')
3 files changed, 219 insertions, 0 deletions
diff --git a/operators/image/resize/resize_ERRORIF_BorderLargerEqualMax_1x4x3x7_f32_modeB_outf32_sc3x1x2x1_off0x0_bor0x3/desc.json b/operators/image/resize/resize_ERRORIF_BorderLargerEqualMax_1x4x3x7_f32_modeB_outf32_sc3x1x2x1_off0x0_bor0x3/desc.json new file mode 100644 index 000000000..abdfe5ac4 --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_BorderLargerEqualMax_1x4x3x7_f32_modeB_outf32_sc3x1x2x1_off0x0_bor0x3/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 larger than or equal to maximum value", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_BorderLargerEqualMax_1x4x3x7_f32_modeB_outf32_sc3x1x2x1_off0x0_bor0x3/input-0.json b/operators/image/resize/resize_ERRORIF_BorderLargerEqualMax_1x4x3x7_f32_modeB_outf32_sc3x1x2x1_off0x0_bor0x3/input-0.json new file mode 100644 index 000000000..a5922d60e --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_BorderLargerEqualMax_1x4x3x7_f32_modeB_outf32_sc3x1x2x1_off0x0_bor0x3/input-0.json @@ -0,0 +1,123 @@ +{ + "type": "float32", + "data": [ + [ + [ + [ + 0.4486474394798279, + 0.15752644836902618, + 0.9444296956062317, + 0.6083104610443115, + 0.12836435437202454, + 0.11650791019201279, + 0.64045649766922 + ], + [ + 0.8437126278877258, + 0.22840067744255066, + 0.2536989450454712, + 0.6039618253707886, + 0.3969857394695282, + 0.8198156356811523, + 0.18769828975200653 + ], + [ + 0.6447843909263611, + 0.3937191367149353, + 0.7502738237380981, + 0.7340444326400757, + 0.7292943000793457, + 0.7684742212295532, + 0.18986205756664276 + ] + ], + [ + [ + 0.5897747874259949, + 0.593894362449646, + 0.3979286849498749, + 0.010612084530293941, + 0.7612066864967346, + 0.676910400390625, + 0.2820380628108978 + ], + [ + 0.40627357363700867, + 0.217853844165802, + 0.8022688627243042, + 0.5204076170921326, + 0.615892231464386, + 0.37720993161201477, + 0.8184546232223511 + ], + [ + 0.9100525975227356, + 0.5435991883277893, + 0.5456776022911072, + 0.873652458190918, + 0.9445716738700867, + 0.2953876554965973, + 0.6267964243888855 + ] + ], + [ + [ + 0.8423884510993958, + 0.9622446894645691, + 0.9437124133110046, + 0.8567859530448914, + 0.6574569940567017, + 0.8651597499847412, + 0.2745809853076935 + ], + [ + 0.2125910371541977, + 0.9512296915054321, + 0.4651418626308441, + 0.6979596614837646, + 0.02783426269888878, + 0.9479234218597412, + 0.04204682633280754 + ], + [ + 0.6683270931243896, + 0.31844034790992737, + 0.3824574053287506, + 0.3825986087322235, + 0.4245193898677826, + 0.6198534965515137, + 0.8342682719230652 + ] + ], + [ + [ + 0.6008161902427673, + 0.6342788934707642, + 0.4387325048446655, + 0.7458466291427612, + 0.3871730864048004, + 0.620990514755249, + 0.2587684690952301 + ], + [ + 0.8824011087417603, + 0.18847298622131348, + 0.5703601241111755, + 0.26107439398765564, + 0.8457944393157959, + 0.4415983259677887, + 0.12896469235420227 + ], + [ + 0.8289514183998108, + 0.7934472560882568, + 0.04183799773454666, + 0.08120692521333694, + 0.4399063289165497, + 0.8157988786697388, + 0.7498214244842529 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_BorderLargerEqualMax_1x4x3x7_f32_modeB_outf32_sc3x1x2x1_off0x0_bor0x3/test.json b/operators/image/resize/resize_ERRORIF_BorderLargerEqualMax_1x4x3x7_f32_modeB_outf32_sc3x1x2x1_off0x0_bor0x3/test.json new file mode 100644 index 000000000..93d2fae72 --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_BorderLargerEqualMax_1x4x3x7_f32_modeB_outf32_sc3x1x2x1_off0x0_bor0x3/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: [ + 0, + 3 + ], + mode: "BILINEAR" + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 4, + 3, + 7 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 1, + 10, + 8, + 7 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |