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/reverse/reverse_33x10_f32_axis1 | |
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/reverse/reverse_33x10_f32_axis1')
4 files changed, 877 insertions, 0 deletions
diff --git a/operators/data_layout/reverse/reverse_33x10_f32_axis1/Conformance-result-0.json b/operators/data_layout/reverse/reverse_33x10_f32_axis1/Conformance-result-0.json new file mode 100644 index 000000000..a0308a163 --- /dev/null +++ b/operators/data_layout/reverse/reverse_33x10_f32_axis1/Conformance-result-0.json @@ -0,0 +1,401 @@ +{ + "type": "float32", + "data": [ + [ + 1.318381667137146, + 0.6339230537414551, + 0.4254513680934906, + -0.652573823928833, + 1.0807723999023438, + -0.7947185635566711, + 1.5341193675994873, + 1.9199141263961792, + -0.46886736154556274, + 1.1511714458465576 + ], + [ + -0.4142550528049469, + -1.8764286041259766, + 1.460400938987732, + -0.6068964600563049, + -1.7791601419448853, + -0.017579687759280205, + 0.2540929615497589, + 0.8476712703704834, + -1.1193684339523315, + -1.9021966457366943 + ], + [ + 1.117079734802246, + 0.1251710206270218, + -1.136300802230835, + 1.542820692062378, + 0.9842719435691833, + 1.4664353132247925, + -0.9695495367050171, + 0.9988229870796204, + -1.7964770793914795, + 1.7805931568145752 + ], + [ + -0.20187103748321533, + -0.09546471387147903, + 0.12645167112350464, + 0.9759789109230042, + 0.5422413945198059, + 0.8400675058364868, + 1.8340611457824707, + -1.8912714719772339, + -1.0770148038864136, + -1.0172010660171509 + ], + [ + 1.6875900030136108, + 1.6115707159042358, + 1.8893849849700928, + -1.435890793800354, + 0.3144371807575226, + -0.6017455458641052, + 1.247009515762329, + 1.5522347688674927, + -1.1938600540161133, + 0.5617568492889404 + ], + [ + 1.3090183734893799, + -1.4698317050933838, + -1.7037692070007324, + 1.9592922925949097, + -1.7147818803787231, + -1.5195574760437012, + -1.6399943828582764, + -1.1529113054275513, + -1.3234611749649048, + -0.6713477969169617 + ], + [ + -0.1293901950120926, + -0.6157447099685669, + -0.21042899787425995, + 0.8509987592697144, + 0.08850037306547165, + 0.5538700819015503, + 1.5287002325057983, + 0.5236480236053467, + 1.0976687669754028, + 0.3209608793258667 + ], + [ + -1.689021348953247, + 1.4256385564804077, + 0.7441994547843933, + -0.6791948080062866, + 1.3682806491851807, + -1.0145909786224365, + -1.385873794555664, + -0.9571848511695862, + 1.1862869262695312, + -1.321143627166748 + ], + [ + 0.487448126077652, + 0.21714234352111816, + -0.8406635522842407, + 0.2753352224826813, + -0.8199231624603271, + 1.6391865015029907, + 0.7556058168411255, + -1.1335105895996094, + -0.7693381309509277, + 1.060097575187683 + ], + [ + -1.6531540155410767, + -0.36385947465896606, + -0.21264463663101196, + -1.703717827796936, + 0.7303524613380432, + 0.6990014314651489, + 0.7741618752479553, + -1.4596807956695557, + 0.4941854774951935, + 0.4413415491580963 + ], + [ + 0.47887754440307617, + -0.00322309834882617, + -0.10977606475353241, + 1.041686773300171, + 0.1831931471824646, + 1.3189996480941772, + -1.051751732826233, + 0.9716252684593201, + -0.23614947497844696, + -1.1105282306671143 + ], + [ + -0.02597367763519287, + 1.6867399215698242, + -0.07363364100456238, + 0.06274975091218948, + -1.7125986814498901, + 0.9500605463981628, + 0.4079878628253937, + 0.11463015526533127, + -0.03274967521429062, + 1.711882472038269 + ], + [ + 0.9338657855987549, + 1.0769703388214111, + -0.27221736311912537, + -1.9977275133132935, + -1.6192498207092285, + -1.1323355436325073, + -1.2764623165130615, + -0.19769415259361267, + 1.8487999439239502, + -0.12671786546707153 + ], + [ + 1.0385721921920776, + -0.35096561908721924, + 0.5662453174591064, + -0.6950465440750122, + 0.5065568685531616, + -1.3305400609970093, + 1.7643051147460938, + -1.382867455482483, + 0.27993160486221313, + -1.871403694152832 + ], + [ + -0.9485146999359131, + -0.998267650604248, + -0.8524303436279297, + -1.104217290878296, + 1.9953144788742065, + 1.3989207744598389, + 1.0243725776672363, + 0.0008385972469113767, + 1.6231673955917358, + -1.077283501625061 + ], + [ + 1.331348180770874, + 0.11416691541671753, + -1.1845574378967285, + 1.731733798980713, + 1.4398821592330933, + 0.556108832359314, + 0.10709292441606522, + 1.961112380027771, + 1.9740900993347168, + 0.3297789692878723 + ], + [ + 0.24310949444770813, + 0.18913136422634125, + -0.716599702835083, + -0.9234780073165894, + 1.1937934160232544, + 1.6244271993637085, + 1.9401867389678955, + 1.9424843788146973, + -0.2407638281583786, + -0.7871916890144348 + ], + [ + -0.2148706465959549, + 1.4020835161209106, + -1.245151162147522, + -1.4910961389541626, + -0.677291989326477, + -0.6658002734184265, + 0.9966966509819031, + -0.3667079210281372, + 0.5466811060905457, + 0.022011278197169304 + ], + [ + -1.7802600860595703, + -1.7402129173278809, + -0.899875819683075, + 0.6234914660453796, + -1.291994333267212, + -0.7345541715621948, + -1.9153759479522705, + 0.21592450141906738, + 1.0373643636703491, + -1.0885288715362549 + ], + [ + 1.5722099542617798, + 1.2110090255737305, + -1.7128114700317383, + -0.22859391570091248, + -0.22124788165092468, + 0.42626532912254333, + -1.3784115314483643, + 1.395168423652649, + -1.9131062030792236, + 0.3269091844558716 + ], + [ + 1.8125934600830078, + 0.3977072238922119, + 0.899267315864563, + 0.6399449706077576, + -1.188838243484497, + -1.3998416662216187, + 0.19797445833683014, + 1.615616798400879, + -1.285583257675171, + -1.9559333324432373 + ], + [ + -0.24328595399856567, + -1.9262487888336182, + 0.8456373810768127, + -0.5911500453948975, + -1.816146969795227, + -1.1023364067077637, + -0.5613348484039307, + -0.09106835722923279, + -0.7989123463630676, + -0.0237455852329731 + ], + [ + -1.8297927379608154, + -1.0177358388900757, + 0.4136238396167755, + -0.09991022199392319, + -1.5888092517852783, + 0.8468232750892639, + 1.2420789003372192, + 1.1065937280654907, + 0.4416164457798004, + 0.576037585735321 + ], + [ + 1.6998498439788818, + -1.928556203842163, + 1.7182916402816772, + -1.1946067810058594, + 1.7027466297149658, + 1.2976621389389038, + -1.2933320999145508, + -0.3442787230014801, + -0.18042239546775818, + -1.1056387424468994 + ], + [ + 0.4553130269050598, + 1.3991568088531494, + -1.6873754262924194, + 0.20129401981830597, + 1.882840633392334, + 1.6236088275909424, + 1.88080632686615, + 1.0520771741867065, + -1.951792597770691, + 1.8077151775360107 + ], + [ + 0.03932146355509758, + -0.11012528836727142, + 1.3959137201309204, + 0.9191230535507202, + -1.6999307870864868, + 0.9590801000595093, + -1.385680913925171, + 0.28736791014671326, + -0.33098554611206055, + 0.45894697308540344 + ], + [ + -1.1390249729156494, + 0.9365853667259216, + 1.7702735662460327, + -0.144310861825943, + -1.1216816902160645, + -1.3007704019546509, + -0.5240457653999329, + 0.9324979186058044, + 1.8778343200683594, + -0.7511429190635681 + ], + [ + -1.3976068496704102, + 1.9492504596710205, + 0.7717063426971436, + -0.9684239625930786, + 1.7066819667816162, + 0.47464245557785034, + -1.0332015752792358, + 1.406888723373413, + -0.4871979057788849, + 1.4382445812225342 + ], + [ + 0.08028765022754669, + 1.3827975988388062, + -0.6598125100135803, + -0.8595104217529297, + 1.0150827169418335, + -0.09877752512693405, + -1.715022087097168, + -0.6410561800003052, + 0.6967807412147522, + -1.6463907957077026 + ], + [ + 0.7501357197761536, + -1.3892394304275513, + -1.4334441423416138, + -0.042939238250255585, + 1.5403718948364258, + -1.5364044904708862, + 0.6031783819198608, + 1.8119006156921387, + -0.21444202959537506, + 1.3709279298782349 + ], + [ + -0.5051279664039612, + 0.4575444161891937, + -1.8718256950378418, + -0.8814547061920166, + 0.08750573545694351, + -0.34258490800857544, + -0.23569028079509735, + -1.4408496618270874, + -0.8536249399185181, + -1.8105099201202393 + ], + [ + 0.37406235933303833, + 0.12176471948623657, + -0.4886494278907776, + 1.2412102222442627, + -0.4237121045589447, + -0.1738107055425644, + -1.0068230628967285, + -1.9448906183242798, + -1.5653321743011475, + 0.6053400039672852 + ], + [ + 1.0553762912750244, + 0.40549105405807495, + -1.9109246730804443, + 1.769616961479187, + 1.1312822103500366, + -1.5988503694534302, + -0.31487947702407837, + -0.6206749677658081, + 0.06053350865840912, + -1.9126744270324707 + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/reverse/reverse_33x10_f32_axis1/desc.json b/operators/data_layout/reverse/reverse_33x10_f32_axis1/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/data_layout/reverse/reverse_33x10_f32_axis1/desc.json @@ -0,0 +1,23 @@ +{ + "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": 0, + "expected_failure": false, + "expected_result_file": [ + "Conformance-result-0.npy" + ], + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/reverse/reverse_33x10_f32_axis1/input-0.json b/operators/data_layout/reverse/reverse_33x10_f32_axis1/input-0.json new file mode 100644 index 000000000..c6a4ebcc4 --- /dev/null +++ b/operators/data_layout/reverse/reverse_33x10_f32_axis1/input-0.json @@ -0,0 +1,401 @@ +{ + "type": "float32", + "data": [ + [ + 1.1511714458465576, + -0.46886736154556274, + 1.9199141263961792, + 1.5341193675994873, + -0.7947185635566711, + 1.0807723999023438, + -0.652573823928833, + 0.4254513680934906, + 0.6339230537414551, + 1.318381667137146 + ], + [ + -1.9021966457366943, + -1.1193684339523315, + 0.8476712703704834, + 0.2540929615497589, + -0.017579687759280205, + -1.7791601419448853, + -0.6068964600563049, + 1.460400938987732, + -1.8764286041259766, + -0.4142550528049469 + ], + [ + 1.7805931568145752, + -1.7964770793914795, + 0.9988229870796204, + -0.9695495367050171, + 1.4664353132247925, + 0.9842719435691833, + 1.542820692062378, + -1.136300802230835, + 0.1251710206270218, + 1.117079734802246 + ], + [ + -1.0172010660171509, + -1.0770148038864136, + -1.8912714719772339, + 1.8340611457824707, + 0.8400675058364868, + 0.5422413945198059, + 0.9759789109230042, + 0.12645167112350464, + -0.09546471387147903, + -0.20187103748321533 + ], + [ + 0.5617568492889404, + -1.1938600540161133, + 1.5522347688674927, + 1.247009515762329, + -0.6017455458641052, + 0.3144371807575226, + -1.435890793800354, + 1.8893849849700928, + 1.6115707159042358, + 1.6875900030136108 + ], + [ + -0.6713477969169617, + -1.3234611749649048, + -1.1529113054275513, + -1.6399943828582764, + -1.5195574760437012, + -1.7147818803787231, + 1.9592922925949097, + -1.7037692070007324, + -1.4698317050933838, + 1.3090183734893799 + ], + [ + 0.3209608793258667, + 1.0976687669754028, + 0.5236480236053467, + 1.5287002325057983, + 0.5538700819015503, + 0.08850037306547165, + 0.8509987592697144, + -0.21042899787425995, + -0.6157447099685669, + -0.1293901950120926 + ], + [ + -1.321143627166748, + 1.1862869262695312, + -0.9571848511695862, + -1.385873794555664, + -1.0145909786224365, + 1.3682806491851807, + -0.6791948080062866, + 0.7441994547843933, + 1.4256385564804077, + -1.689021348953247 + ], + [ + 1.060097575187683, + -0.7693381309509277, + -1.1335105895996094, + 0.7556058168411255, + 1.6391865015029907, + -0.8199231624603271, + 0.2753352224826813, + -0.8406635522842407, + 0.21714234352111816, + 0.487448126077652 + ], + [ + 0.4413415491580963, + 0.4941854774951935, + -1.4596807956695557, + 0.7741618752479553, + 0.6990014314651489, + 0.7303524613380432, + -1.703717827796936, + -0.21264463663101196, + -0.36385947465896606, + -1.6531540155410767 + ], + [ + -1.1105282306671143, + -0.23614947497844696, + 0.9716252684593201, + -1.051751732826233, + 1.3189996480941772, + 0.1831931471824646, + 1.041686773300171, + -0.10977606475353241, + -0.00322309834882617, + 0.47887754440307617 + ], + [ + 1.711882472038269, + -0.03274967521429062, + 0.11463015526533127, + 0.4079878628253937, + 0.9500605463981628, + -1.7125986814498901, + 0.06274975091218948, + -0.07363364100456238, + 1.6867399215698242, + -0.02597367763519287 + ], + [ + -0.12671786546707153, + 1.8487999439239502, + -0.19769415259361267, + -1.2764623165130615, + -1.1323355436325073, + -1.6192498207092285, + -1.9977275133132935, + -0.27221736311912537, + 1.0769703388214111, + 0.9338657855987549 + ], + [ + -1.871403694152832, + 0.27993160486221313, + -1.382867455482483, + 1.7643051147460938, + -1.3305400609970093, + 0.5065568685531616, + -0.6950465440750122, + 0.5662453174591064, + -0.35096561908721924, + 1.0385721921920776 + ], + [ + -1.077283501625061, + 1.6231673955917358, + 0.0008385972469113767, + 1.0243725776672363, + 1.3989207744598389, + 1.9953144788742065, + -1.104217290878296, + -0.8524303436279297, + -0.998267650604248, + -0.9485146999359131 + ], + [ + 0.3297789692878723, + 1.9740900993347168, + 1.961112380027771, + 0.10709292441606522, + 0.556108832359314, + 1.4398821592330933, + 1.731733798980713, + -1.1845574378967285, + 0.11416691541671753, + 1.331348180770874 + ], + [ + -0.7871916890144348, + -0.2407638281583786, + 1.9424843788146973, + 1.9401867389678955, + 1.6244271993637085, + 1.1937934160232544, + -0.9234780073165894, + -0.716599702835083, + 0.18913136422634125, + 0.24310949444770813 + ], + [ + 0.022011278197169304, + 0.5466811060905457, + -0.3667079210281372, + 0.9966966509819031, + -0.6658002734184265, + -0.677291989326477, + -1.4910961389541626, + -1.245151162147522, + 1.4020835161209106, + -0.2148706465959549 + ], + [ + -1.0885288715362549, + 1.0373643636703491, + 0.21592450141906738, + -1.9153759479522705, + -0.7345541715621948, + -1.291994333267212, + 0.6234914660453796, + -0.899875819683075, + -1.7402129173278809, + -1.7802600860595703 + ], + [ + 0.3269091844558716, + -1.9131062030792236, + 1.395168423652649, + -1.3784115314483643, + 0.42626532912254333, + -0.22124788165092468, + -0.22859391570091248, + -1.7128114700317383, + 1.2110090255737305, + 1.5722099542617798 + ], + [ + -1.9559333324432373, + -1.285583257675171, + 1.615616798400879, + 0.19797445833683014, + -1.3998416662216187, + -1.188838243484497, + 0.6399449706077576, + 0.899267315864563, + 0.3977072238922119, + 1.8125934600830078 + ], + [ + -0.0237455852329731, + -0.7989123463630676, + -0.09106835722923279, + -0.5613348484039307, + -1.1023364067077637, + -1.816146969795227, + -0.5911500453948975, + 0.8456373810768127, + -1.9262487888336182, + -0.24328595399856567 + ], + [ + 0.576037585735321, + 0.4416164457798004, + 1.1065937280654907, + 1.2420789003372192, + 0.8468232750892639, + -1.5888092517852783, + -0.09991022199392319, + 0.4136238396167755, + -1.0177358388900757, + -1.8297927379608154 + ], + [ + -1.1056387424468994, + -0.18042239546775818, + -0.3442787230014801, + -1.2933320999145508, + 1.2976621389389038, + 1.7027466297149658, + -1.1946067810058594, + 1.7182916402816772, + -1.928556203842163, + 1.6998498439788818 + ], + [ + 1.8077151775360107, + -1.951792597770691, + 1.0520771741867065, + 1.88080632686615, + 1.6236088275909424, + 1.882840633392334, + 0.20129401981830597, + -1.6873754262924194, + 1.3991568088531494, + 0.4553130269050598 + ], + [ + 0.45894697308540344, + -0.33098554611206055, + 0.28736791014671326, + -1.385680913925171, + 0.9590801000595093, + -1.6999307870864868, + 0.9191230535507202, + 1.3959137201309204, + -0.11012528836727142, + 0.03932146355509758 + ], + [ + -0.7511429190635681, + 1.8778343200683594, + 0.9324979186058044, + -0.5240457653999329, + -1.3007704019546509, + -1.1216816902160645, + -0.144310861825943, + 1.7702735662460327, + 0.9365853667259216, + -1.1390249729156494 + ], + [ + 1.4382445812225342, + -0.4871979057788849, + 1.406888723373413, + -1.0332015752792358, + 0.47464245557785034, + 1.7066819667816162, + -0.9684239625930786, + 0.7717063426971436, + 1.9492504596710205, + -1.3976068496704102 + ], + [ + -1.6463907957077026, + 0.6967807412147522, + -0.6410561800003052, + -1.715022087097168, + -0.09877752512693405, + 1.0150827169418335, + -0.8595104217529297, + -0.6598125100135803, + 1.3827975988388062, + 0.08028765022754669 + ], + [ + 1.3709279298782349, + -0.21444202959537506, + 1.8119006156921387, + 0.6031783819198608, + -1.5364044904708862, + 1.5403718948364258, + -0.042939238250255585, + -1.4334441423416138, + -1.3892394304275513, + 0.7501357197761536 + ], + [ + -1.8105099201202393, + -0.8536249399185181, + -1.4408496618270874, + -0.23569028079509735, + -0.34258490800857544, + 0.08750573545694351, + -0.8814547061920166, + -1.8718256950378418, + 0.4575444161891937, + -0.5051279664039612 + ], + [ + 0.6053400039672852, + -1.5653321743011475, + -1.9448906183242798, + -1.0068230628967285, + -0.1738107055425644, + -0.4237121045589447, + 1.2412102222442627, + -0.4886494278907776, + 0.12176471948623657, + 0.37406235933303833 + ], + [ + -1.9126744270324707, + 0.06053350865840912, + -0.6206749677658081, + -0.31487947702407837, + -1.5988503694534302, + 1.1312822103500366, + 1.769616961479187, + -1.9109246730804443, + 0.40549105405807495, + 1.0553762912750244 + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/reverse/reverse_33x10_f32_axis1/test.json b/operators/data_layout/reverse/reverse_33x10_f32_axis1/test.json new file mode 100644 index 000000000..9e128dcb9 --- /dev/null +++ b/operators/data_layout/reverse/reverse_33x10_f32_axis1/test.json @@ -0,0 +1,52 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "REVERSE", + attribute_type: "AxisAttribute", + attribute: { + axis: 1 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 33, + 10 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 33, + 10 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |