diff options
author | James Ward <james.ward@arm.com> | 2023-01-17 17:22:19 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2023-01-26 12:10:28 +0000 |
commit | e8c4df459931d92df458f42adfc6d164a701e2e4 (patch) | |
tree | 1760d2ab225e44db0434bc6fa73694f6dd952132 /operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2 | |
parent | de22a661323bcad18a67a318d9cda5ce9f2699a8 (diff) | |
download | conformance_tests-e8c4df459931d92df458f42adfc6d164a701e2e4.tar.gz |
Create MI tests for Data Layout: SLICE
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I1be7f445a53791ca1395ef484725825b051afba3
Diffstat (limited to 'operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2')
3 files changed, 613 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2/desc.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2/desc.json new file mode 100644 index 000000000..bf7c1974a --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2/desc.json @@ -0,0 +1,22 @@ +{ + "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": "Op input list does not match expected input", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2/input-0.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2/input-0.json new file mode 100644 index 000000000..ea601247e --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2/input-0.json @@ -0,0 +1,522 @@ +{ + "type": "float32", + "data": [ + [ + [ + 0.44490769505500793, + 0.16792114078998566, + 0.4339089095592499 + ], + [ + 0.4331323802471161, + 0.7416729927062988, + 0.06300854682922363 + ], + [ + 0.2510826587677002, + 0.5701497793197632, + 0.2183302342891693 + ], + [ + 0.4433637261390686, + 0.493368536233902, + 0.15858417749404907 + ], + [ + 0.3132106363773346, + 0.5905037522315979, + 0.769720733165741 + ], + [ + 0.47346746921539307, + 0.013202683068811893, + 0.6714143753051758 + ], + [ + 0.36296916007995605, + 0.45608875155448914, + 0.9104593396186829 + ], + [ + 0.4213751554489136, + 0.91377192735672, + 0.27165329456329346 + ], + [ + 0.6926199197769165, + 0.4337483048439026, + 0.9395908713340759 + ] + ], + [ + [ + 0.7400251626968384, + 0.2545548975467682, + 0.4566977620124817 + ], + [ + 0.9186305403709412, + 0.6651102304458618, + 0.8636955618858337 + ], + [ + 0.3180773854255676, + 0.7614790797233582, + 0.13651001453399658 + ], + [ + 0.8529433608055115, + 0.5463861227035522, + 0.05466984212398529 + ], + [ + 0.2694641649723053, + 0.49733904004096985, + 0.5159043669700623 + ], + [ + 0.7418298721313477, + 0.5528326034545898, + 0.7862933874130249 + ], + [ + 0.8128340840339661, + 0.6072138547897339, + 0.21581655740737915 + ], + [ + 0.6553003787994385, + 0.4379548728466034, + 0.07668057084083557 + ], + [ + 0.47654956579208374, + 0.8100484609603882, + 0.43570542335510254 + ] + ], + [ + [ + 0.36592623591423035, + 0.19456258416175842, + 0.5561065077781677 + ], + [ + 0.25611093640327454, + 0.6201270222663879, + 0.006343693006783724 + ], + [ + 0.36166223883628845, + 0.7597426176071167, + 0.02877224050462246 + ], + [ + 0.10008535534143448, + 0.9696893692016602, + 0.008782864548265934 + ], + [ + 0.7617695331573486, + 0.36029353737831116, + 0.2889639437198639 + ], + [ + 0.7122498750686646, + 0.8467963337898254, + 0.435959130525589 + ], + [ + 0.00016440366744063795, + 0.8841860294342041, + 0.9000101089477539 + ], + [ + 0.5924755930900574, + 0.24065254628658295, + 0.9680971503257751 + ], + [ + 0.43579453229904175, + 0.9090615510940552, + 0.24267901480197906 + ] + ], + [ + [ + 0.91289883852005, + 0.751721978187561, + 0.4437466263771057 + ], + [ + 0.04620200768113136, + 0.3812152147293091, + 0.8619445562362671 + ], + [ + 0.6735444664955139, + 0.29813894629478455, + 0.6006656885147095 + ], + [ + 0.933017373085022, + 0.39613252878189087, + 0.22622157633304596 + ], + [ + 0.8464911580085754, + 0.5395944714546204, + 0.571370542049408 + ], + [ + 0.9253166913986206, + 0.4030534029006958, + 0.7322665452957153 + ], + [ + 0.8656586408615112, + 0.5970354676246643, + 0.6059720516204834 + ], + [ + 0.49449440836906433, + 0.09022847563028336, + 0.2846778333187103 + ], + [ + 0.3826732039451599, + 0.25343412160873413, + 0.27331966161727905 + ] + ], + [ + [ + 0.8725335001945496, + 0.5901355147361755, + 0.9418941140174866 + ], + [ + 0.4526987671852112, + 0.6297264695167542, + 0.571615993976593 + ], + [ + 0.9412535429000854, + 0.11780411750078201, + 0.3115535080432892 + ], + [ + 0.7519128918647766, + 0.7748140096664429, + 0.10919248312711716 + ], + [ + 0.5540957450866699, + 0.247501939535141, + 0.8478938937187195 + ], + [ + 0.7592843770980835, + 0.5558091402053833, + 0.6268989443778992 + ], + [ + 0.9262888431549072, + 0.0034071821719408035, + 0.6310926079750061 + ], + [ + 0.07321381568908691, + 0.9509322643280029, + 0.3588540852069855 + ], + [ + 0.25965699553489685, + 0.00502556748688221, + 0.011157256551086903 + ] + ], + [ + [ + 0.9694157242774963, + 0.7778003215789795, + 0.940385103225708 + ], + [ + 0.38882318139076233, + 0.3060465157032013, + 0.7355751395225525 + ], + [ + 0.6866805553436279, + 0.9519755840301514, + 0.21295902132987976 + ], + [ + 0.568712592124939, + 0.5881701707839966, + 0.7113949060440063 + ], + [ + 0.9677254557609558, + 0.9192332029342651, + 0.7449195384979248 + ], + [ + 0.38302940130233765, + 0.37643054127693176, + 0.6761011481285095 + ], + [ + 0.37093788385391235, + 0.746722936630249, + 0.9334007501602173 + ], + [ + 0.6096430420875549, + 0.6573483347892761, + 0.6808525323867798 + ], + [ + 0.6132766604423523, + 0.5131619572639465, + 0.805464506149292 + ] + ], + [ + [ + 0.0880826786160469, + 0.7100844979286194, + 0.18354931473731995 + ], + [ + 0.795802116394043, + 0.6147416830062866, + 0.40968942642211914 + ], + [ + 0.42327046394348145, + 0.22339238226413727, + 0.3458576500415802 + ], + [ + 0.15749159455299377, + 0.33556583523750305, + 0.4623457193374634 + ], + [ + 0.22310899198055267, + 0.0074881091713905334, + 0.8149425983428955 + ], + [ + 0.8014763593673706, + 0.9077224731445312, + 0.16015246510505676 + ], + [ + 0.13051027059555054, + 0.2228887677192688, + 0.07298098504543304 + ], + [ + 0.6444752216339111, + 0.6727626919746399, + 0.2660331428050995 + ], + [ + 0.7088828086853027, + 0.28175801038742065, + 0.7701426148414612 + ] + ], + [ + [ + 0.3080609440803528, + 0.43548819422721863, + 0.8808161616325378 + ], + [ + 0.7617426514625549, + 0.14773543179035187, + 0.37832412123680115 + ], + [ + 0.28542613983154297, + 0.4381249248981476, + 0.23588545620441437 + ], + [ + 0.04131103679537773, + 0.9337999224662781, + 0.9499526023864746 + ], + [ + 0.34370988607406616, + 0.5162695646286011, + 0.6245728731155396 + ], + [ + 0.2204408496618271, + 0.8201353549957275, + 0.24645383656024933 + ], + [ + 0.3227890729904175, + 0.13301964104175568, + 0.15367980301380157 + ], + [ + 0.5917686223983765, + 0.9731950163841248, + 0.07367957383394241 + ], + [ + 0.1404060572385788, + 0.4376924932003021, + 0.5691260099411011 + ] + ], + [ + [ + 0.3439383804798126, + 0.10474302619695663, + 0.8756691813468933 + ], + [ + 0.6162996292114258, + 0.8956420421600342, + 0.6168618202209473 + ], + [ + 0.43138977885246277, + 0.47727206349372864, + 0.5883806943893433 + ], + [ + 0.08245723694562912, + 0.27426090836524963, + 0.8716132640838623 + ], + [ + 0.9987059831619263, + 0.5425291061401367, + 0.6490013599395752 + ], + [ + 0.7719656229019165, + 0.931652307510376, + 0.00937093049287796 + ], + [ + 0.6988405585289001, + 0.5518717765808105, + 0.16159376502037048 + ], + [ + 0.9213674068450928, + 0.6757053136825562, + 0.37852898240089417 + ], + [ + 0.02881978452205658, + 0.5370124578475952, + 0.849161684513092 + ] + ], + [ + [ + 0.8572806715965271, + 0.9736720323562622, + 0.19353388249874115 + ], + [ + 0.815835177898407, + 0.7859455943107605, + 0.7776296138763428 + ], + [ + 0.3769589364528656, + 0.5498397946357727, + 0.7353641986846924 + ], + [ + 0.06907403469085693, + 0.6059685945510864, + 0.6788331270217896 + ], + [ + 0.4960445463657379, + 0.8919718265533447, + 0.8332987427711487 + ], + [ + 0.902244508266449, + 0.8059951663017273, + 0.6790022253990173 + ], + [ + 0.963107168674469, + 0.32406488060951233, + 0.9747556447982788 + ], + [ + 0.26984888315200806, + 0.19328947365283966, + 0.872722327709198 + ], + [ + 0.861675500869751, + 0.2461380511522293, + 0.36678919196128845 + ] + ], + [ + [ + 0.1416759341955185, + 0.194570854306221, + 0.361097514629364 + ], + [ + 0.1606312096118927, + 0.1439550817012787, + 0.3347712457180023 + ], + [ + 0.8010208606719971, + 0.8758178353309631, + 0.2793441712856293 + ], + [ + 0.9252174496650696, + 0.006065879482775927, + 0.29909902811050415 + ], + [ + 0.5859088897705078, + 0.8953307271003723, + 0.8876710534095764 + ], + [ + 0.7763310074806213, + 0.42351728677749634, + 0.8931683301925659 + ], + [ + 0.022579366341233253, + 0.04060915857553482, + 0.6874905824661255 + ], + [ + 0.1919655054807663, + 0.995445728302002, + 0.5294880867004395 + ], + [ + 0.143196702003479, + 0.954211950302124, + 0.30939781665802 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2/test.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2/test.json new file mode 100644 index 000000000..f9d63b919 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_11x9x3_f32_perm2/test.json @@ -0,0 +1,69 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 5, + 1, + 0 + ], + size: [ + 5, + 3, + 1 + ] + }, + inputs: [ + "input-0", + "eiDummyInput" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 9, + 3 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 5, + 3, + 1 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |