diff options
author | James Ward <james.ward@arm.com> | 2022-12-15 13:50:37 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-12-15 16:42:48 +0000 |
commit | ff47fea5f558845c7ff6bd07e89318a108736aa2 (patch) | |
tree | 53a46a385374707ceb0eb5a885098120534aa097 /operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_off0x0_bor0x3 | |
parent | 1aa23bd44af0ae508dc83d26e66dfc6d68d837f8 (diff) | |
download | conformance_tests-ff47fea5f558845c7ff6bd07e89318a108736aa2.tar.gz |
Create MI tests for Image: RESIZE
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I95efbad04b950f0aa0e4ea3729ec1da94502d6b3
Diffstat (limited to 'operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_off0x0_bor0x3')
3 files changed, 204 insertions, 0 deletions
diff --git a/operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_off0x0_bor0x3/desc.json b/operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_off0x0_bor0x3/desc.json new file mode 100644 index 000000000..7ff2153cf --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_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": "Input batch size not equal to output batch size", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_off0x0_bor0x3/input-0.json b/operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_off0x0_bor0x3/input-0.json new file mode 100644 index 000000000..872683056 --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_off0x0_bor0x3/input-0.json @@ -0,0 +1,113 @@ +{ + "type": "float16", + "data": [ + [ + [ + [ + 0.564453125, + 0.396728515625, + 0.8876953125, + 0.1220703125, + 0.9326171875, + 0.22802734375 + ], + [ + 0.8701171875, + 0.414306640625, + 0.0055999755859375, + 0.31884765625, + 0.006473541259765625, + 0.2783203125 + ], + [ + 0.2039794921875, + 0.4267578125, + 0.25244140625, + 0.007358551025390625, + 0.169189453125, + 0.79248046875 + ], + [ + 0.96875, + 0.47314453125, + 0.654296875, + 0.3681640625, + 0.68017578125, + 0.7333984375 + ], + [ + 0.88134765625, + 0.890625, + 0.25341796875, + 0.487060546875, + 0.85009765625, + 0.22607421875 + ], + [ + 0.64111328125, + 0.55810546875, + 0.76171875, + 0.0928955078125, + 0.396240234375, + 0.39306640625 + ], + [ + 0.33203125, + 0.673828125, + 0.8876953125, + 0.1668701171875, + 0.8642578125, + 0.71533203125 + ], + [ + 0.38916015625, + 0.10980224609375, + 0.939453125, + 0.1636962890625, + 0.0032596588134765625, + 0.59765625 + ], + [ + 0.85205078125, + 0.8515625, + 0.457275390625, + 0.6181640625, + 0.35546875, + 0.49609375 + ], + [ + 0.90625, + 0.7626953125, + 0.70849609375, + 0.420166015625, + 0.17724609375, + 0.970703125 + ], + [ + 0.63818359375, + 0.37646484375, + 0.035491943359375, + 0.073974609375, + 0.69287109375, + 0.5302734375 + ], + [ + 0.787109375, + 0.6650390625, + 0.99072265625, + 0.8056640625, + 0.06536865234375, + 0.21923828125 + ], + [ + 0.62841796875, + 0.399169921875, + 0.1251220703125, + 0.489013671875, + 0.49462890625, + 0.58154296875 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_off0x0_bor0x3/test.json b/operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_off0x0_bor0x3/test.json new file mode 100644 index 000000000..5854dceae --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_BatchMismatch_1x1x13x6_f16_modeB_outf16_sc16x1x9x1_off0x0_bor0x3/test.json @@ -0,0 +1,70 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESIZE", + attribute_type: "ResizeAttribute", + attribute: { + scale: [ + 16, + 1, + 9, + 1 + ], + offset: [ + 0, + 0 + ], + border: [ + 0, + 3 + ], + mode: "BILINEAR" + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 1, + 13, + 6 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 10, + 1, + 112, + 6 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |