diff options
author | James Ward <james.ward@arm.com> | 2022-11-21 11:51:55 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2022-11-21 11:51:55 +0000 |
commit | d8e6b6b5148a3d61b378e6e5259ca421a709abef (patch) | |
tree | 2ec785497e47a644c12d57f22a306b0749d22735 /operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0 | |
parent | da333bee0fae850bf90f422d68902884b6063cce (diff) | |
download | conformance_tests-d8e6b6b5148a3d61b378e6e5259ca421a709abef.tar.gz |
Create MI tests for Data Layout: CONCAT, PAD, RESHAPE, REVERSE, SLICE, TILE, TRANSPOSE
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Icbbe8f63e35d04a3b2cc64bd760ca92c22fd4aa7
Diffstat (limited to 'operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0')
3 files changed, 344 insertions, 0 deletions
diff --git a/operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0/desc.json b/operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0/desc.json new file mode 100644 index 000000000..b4526f1cb --- /dev/null +++ b/operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0/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": "Op input list does not match expected input", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0/input-0.json b/operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0/input-0.json new file mode 100644 index 000000000..3a3061655 --- /dev/null +++ b/operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0/input-0.json @@ -0,0 +1,265 @@ +{ + "type": "float32", + "data": [ + [ + [ + 0.9439755082130432, + 0.5826562643051147, + 0.28478941321372986, + 0.6732780337333679, + 0.3903944194316864, + 0.9441057443618774, + 0.28501105308532715, + 0.06274275481700897, + 0.3081653118133545, + 0.9375145435333252 + ], + [ + 0.5521124005317688, + 0.4048561155796051, + 0.7663813829421997, + 0.4865034520626068, + 0.34787517786026, + 0.08845720440149307, + 0.8993353247642517, + 0.9503399729728699, + 0.0886564552783966, + 0.07047351449728012 + ] + ], + [ + [ + 0.1154557317495346, + 0.9826571345329285, + 0.5336723327636719, + 0.7785040140151978, + 0.4805090129375458, + 0.4774514436721802, + 0.47401711344718933, + 0.2212376594543457, + 0.2697249948978424, + 0.0786517858505249 + ], + [ + 0.008771155960857868, + 0.40874430537223816, + 0.9268882274627686, + 0.08692952990531921, + 0.033151187002658844, + 0.6690240502357483, + 0.7402266263961792, + 0.5395137667655945, + 0.7760589122772217, + 0.31207016110420227 + ] + ], + [ + [ + 0.35256800055503845, + 0.7690380811691284, + 0.06642363220453262, + 0.3298934996128082, + 0.5170688033103943, + 0.6749589443206787, + 0.19958972930908203, + 0.26941436529159546, + 0.8404695391654968, + 0.8418552279472351 + ], + [ + 0.5835427641868591, + 0.9081434607505798, + 0.2521471381187439, + 0.44478124380111694, + 0.8533592224121094, + 0.491523802280426, + 0.7132779359817505, + 0.24339637160301208, + 0.11377962678670883, + 0.028981337323784828 + ] + ], + [ + [ + 0.33867624402046204, + 0.8745611906051636, + 0.5033582448959351, + 0.45420461893081665, + 0.01769969053566456, + 0.8784869909286499, + 0.05388982966542244, + 0.21939024329185486, + 0.582264244556427, + 0.8715883493423462 + ], + [ + 0.7830629944801331, + 0.36469581723213196, + 0.11585905402898788, + 0.5591961145401001, + 0.00926098320633173, + 0.22952429950237274, + 0.26882225275039673, + 0.3286830186843872, + 0.954330325126648, + 0.9524221420288086 + ] + ], + [ + [ + 0.4812895655632019, + 0.6824319362640381, + 0.8909888863563538, + 0.4172355532646179, + 0.024534625932574272, + 0.024786552414298058, + 0.37013372778892517, + 0.7513448596000671, + 0.2966919541358948, + 0.8285550475120544 + ], + [ + 0.48251327872276306, + 0.8624883890151978, + 0.10679827630519867, + 0.7253270745277405, + 0.5317467451095581, + 0.8495295643806458, + 0.8200652599334717, + 0.583059549331665, + 0.10934273898601532, + 0.5358737707138062 + ] + ], + [ + [ + 0.06963977217674255, + 0.5207510590553284, + 0.027234656736254692, + 0.4485756754875183, + 0.23296453058719635, + 0.31458887457847595, + 0.21046082675457, + 0.5324221253395081, + 0.24801486730575562, + 0.9396544694900513 + ], + [ + 0.2404247522354126, + 0.4954591691493988, + 0.6399366855621338, + 0.43920573592185974, + 0.8162973523139954, + 0.7319476008415222, + 0.6564509868621826, + 0.1435086876153946, + 0.4920741021633148, + 0.1278688907623291 + ] + ], + [ + [ + 0.4428808391094208, + 0.2579699158668518, + 0.5874917507171631, + 0.8823314309120178, + 0.8554806709289551, + 0.033928997814655304, + 0.730586588382721, + 0.45073065161705017, + 0.11958730220794678, + 0.642542839050293 + ], + [ + 0.19086214900016785, + 0.4431245028972626, + 0.08914127945899963, + 0.38366687297821045, + 0.6696926951408386, + 0.09173276275396347, + 0.7055841684341431, + 0.5690599679946899, + 0.29907047748565674, + 0.40916910767555237 + ] + ], + [ + [ + 0.4956952929496765, + 0.3830174505710602, + 0.46816423535346985, + 0.48725876212120056, + 0.27675965428352356, + 0.5712078809738159, + 0.3886168301105499, + 0.6649003624916077, + 0.6663193106651306, + 0.4372137188911438 + ], + [ + 0.7266803979873657, + 0.4927838146686554, + 0.4471799433231354, + 0.8875085115432739, + 0.31335458159446716, + 0.2319791316986084, + 0.0024987347424030304, + 0.4100376069545746, + 0.4733749330043793, + 0.10351213812828064 + ] + ], + [ + [ + 0.9241762757301331, + 0.4948086142539978, + 0.5850248336791992, + 0.33899468183517456, + 0.41408422589302063, + 0.5086597204208374, + 0.8300196528434753, + 0.8921356797218323, + 0.5024776458740234, + 0.1748131364583969 + ], + [ + 0.5230827927589417, + 0.7564505338668823, + 0.48207515478134155, + 0.7491123676300049, + 0.6551123857498169, + 0.4505130648612976, + 0.31642836332321167, + 0.6270114779472351, + 0.2926751375198364, + 0.01146009936928749 + ] + ], + [ + [ + 0.6354550123214722, + 0.9069619178771973, + 0.7423549890518188, + 0.2816011309623718, + 0.506942629814148, + 0.35236692428588867, + 0.8905934691429138, + 0.7062180042266846, + 0.869077742099762, + 0.6415396332740784 + ], + [ + 0.43621549010276794, + 0.7697682976722717, + 0.5908035039901733, + 0.8127540946006775, + 0.24244359135627747, + 0.8520635962486267, + 0.2159167230129242, + 0.38715869188308716, + 0.20526123046875, + 0.3983509838581085 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0/test.json b/operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0/test.json new file mode 100644 index 000000000..c53020cc8 --- /dev/null +++ b/operators/data_layout/transpose/transpose_ERRORIF_WrongInputList_10x2x10_f32_perm0/test.json @@ -0,0 +1,58 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "TRANSPOSE", + attribute_type: "TransposeAttribute", + attribute: { + perms: [ + 2, + 0, + 1 + ] + }, + inputs: [ + + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 2, + 10 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 10, + 10, + 2 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |