diff options
Diffstat (limited to 'operators/image/resize/resize_ERRORIF_ResizeOutputShapeNonInteger_1x4x9x3_f16_modeN_outf16_sc1x3x1x4_off0x7_bor0x0')
3 files changed, 291 insertions, 0 deletions
diff --git a/operators/image/resize/resize_ERRORIF_ResizeOutputShapeNonInteger_1x4x9x3_f16_modeN_outf16_sc1x3x1x4_off0x7_bor0x0/desc.json b/operators/image/resize/resize_ERRORIF_ResizeOutputShapeNonInteger_1x4x9x3_f16_modeN_outf16_sc1x3x1x4_off0x7_bor0x0/desc.json new file mode 100644 index 000000000..91176d866 --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_ResizeOutputShapeNonInteger_1x4x9x3_f16_modeN_outf16_sc1x3x1x4_off0x7_bor0x0/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": "Parameters do not yield exact integer output dimensions", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_ResizeOutputShapeNonInteger_1x4x9x3_f16_modeN_outf16_sc1x3x1x4_off0x7_bor0x0/input-0.json b/operators/image/resize/resize_ERRORIF_ResizeOutputShapeNonInteger_1x4x9x3_f16_modeN_outf16_sc1x3x1x4_off0x7_bor0x0/input-0.json new file mode 100644 index 000000000..84a68b865 --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_ResizeOutputShapeNonInteger_1x4x9x3_f16_modeN_outf16_sc1x3x1x4_off0x7_bor0x0/input-0.json @@ -0,0 +1,195 @@ +{ + "type": "float16", + "data": [ + [ + [ + [ + 0.0063629150390625, + 0.60498046875, + 0.1212158203125 + ], + [ + 0.429443359375, + 0.11065673828125, + 0.49609375 + ], + [ + 0.87255859375, + 0.9033203125, + 0.744140625 + ], + [ + 0.313232421875, + 0.99462890625, + 0.55224609375 + ], + [ + 0.493896484375, + 0.7080078125, + 0.0196533203125 + ], + [ + 0.52587890625, + 0.5751953125, + 0.80615234375 + ], + [ + 0.41748046875, + 0.716796875, + 0.459228515625 + ], + [ + 0.364501953125, + 0.9931640625, + 0.037353515625 + ], + [ + 0.17578125, + 0.466552734375, + 0.1768798828125 + ] + ], + [ + [ + 0.0224456787109375, + 0.26611328125, + 0.47802734375 + ], + [ + 0.68359375, + 0.72216796875, + 0.95849609375 + ], + [ + 0.389404296875, + 0.28125, + 0.359375 + ], + [ + 0.3642578125, + 0.560546875, + 0.0145416259765625 + ], + [ + 0.474609375, + 0.135498046875, + 0.0654296875 + ], + [ + 0.36865234375, + 0.5185546875, + 0.309326171875 + ], + [ + 0.775390625, + 0.9384765625, + 0.2330322265625 + ], + [ + 0.60498046875, + 0.156982421875, + 0.333740234375 + ], + [ + 0.9658203125, + 0.67626953125, + 0.34033203125 + ] + ], + [ + [ + 0.73828125, + 0.35546875, + 0.363037109375 + ], + [ + 0.346923828125, + 0.55419921875, + 0.84619140625 + ], + [ + 0.454833984375, + 0.95947265625, + 0.3408203125 + ], + [ + 0.0215911865234375, + 0.8974609375, + 0.8798828125 + ], + [ + 0.8310546875, + 0.0401611328125, + 0.6572265625 + ], + [ + 0.447265625, + 0.1943359375, + 0.28857421875 + ], + [ + 0.5234375, + 0.80810546875, + 0.5126953125 + ], + [ + 0.3466796875, + 0.61572265625, + 0.2890625 + ], + [ + 0.45947265625, + 0.427734375, + 0.236328125 + ] + ], + [ + [ + 0.7822265625, + 0.2066650390625, + 0.67822265625 + ], + [ + 0.5576171875, + 0.84326171875, + 0.9619140625 + ], + [ + 0.7294921875, + 0.195556640625, + 0.65673828125 + ], + [ + 0.97802734375, + 0.50244140625, + 0.5146484375 + ], + [ + 0.032470703125, + 0.380126953125, + 0.51806640625 + ], + [ + 0.3681640625, + 0.258056640625, + 0.1512451171875 + ], + [ + 0.65869140625, + 0.568359375, + 0.89404296875 + ], + [ + 0.919921875, + 0.64599609375, + 0.354736328125 + ], + [ + 0.9208984375, + 0.890625, + 0.61572265625 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_ResizeOutputShapeNonInteger_1x4x9x3_f16_modeN_outf16_sc1x3x1x4_off0x7_bor0x0/test.json b/operators/image/resize/resize_ERRORIF_ResizeOutputShapeNonInteger_1x4x9x3_f16_modeN_outf16_sc1x3x1x4_off0x7_bor0x0/test.json new file mode 100644 index 000000000..a812746a5 --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_ResizeOutputShapeNonInteger_1x4x9x3_f16_modeN_outf16_sc1x3x1x4_off0x7_bor0x0/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: [ + 1, + 3, + 1, + 4 + ], + offset: [ + 0, + 7 + ], + border: [ + 0, + 0 + ], + mode: "NEAREST" + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 4, + 9, + 3 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 1, + 2, + 1, + 3 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |