diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:08:52 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:08:52 +0100 |
commit | 0ea9b225e914a7ee00ebd0bc7c3861dc6230a900 (patch) | |
tree | 28627ef1d7ae4cf0fed98cd50b84e76bc056539f /operators/type_conversion/cast/cast_25x20_i32_outINT16 | |
parent | 6ecf925ab6c61ccfdfee6e103db7fffe1b1304bc (diff) | |
download | conformance_tests-0ea9b225e914a7ee00ebd0bc7c3861dc6230a900.tar.gz |
Updating CAST tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I5d447b4fa19217a414ded2facc6000a6dc0b874f
Diffstat (limited to 'operators/type_conversion/cast/cast_25x20_i32_outINT16')
4 files changed, 1179 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_25x20_i32_outINT16/Conformance-result-0.json b/operators/type_conversion/cast/cast_25x20_i32_outINT16/Conformance-result-0.json new file mode 100644 index 000000000..9267462fb --- /dev/null +++ b/operators/type_conversion/cast/cast_25x20_i32_outINT16/Conformance-result-0.json @@ -0,0 +1,555 @@ +{ + "type": "int32", + "data": [ + [ + 288870119, + -775396883, + -266702083, + -1614541121, + -643637175, + -1537246378, + -1174951912, + -345899602, + 290884, + 1898334173, + -2035589218, + 1711812363, + -737700027, + 962782385, + 763955683, + 2022273179, + -1680547519, + 2006550750, + -1877367820, + 1620519853 + ], + [ + 653602132, + -77678027, + -439054230, + -1745488464, + 1296328661, + 979044284, + 1878237748, + 989643166, + 1962973801, + 1661320510, + -319576260, + 874975951, + -1012206865, + 1268010961, + 466492455, + -256298073, + 550584424, + -956974462, + 525467499, + -108182344 + ], + [ + -765455026, + 2042381127, + -1873672026, + 1106808771, + -1245519734, + -1191767368, + -1484257255, + -1707639844, + -1615335715, + 1428824816, + 1830872922, + 364122037, + -2088008462, + 1565506261, + 437475658, + 89643512, + 1921885318, + -387416007, + -601067241, + 1201809671 + ], + [ + 116385406, + 931495181, + 840884431, + 1457892841, + -785250183, + -1838120425, + -95983982, + 633733207, + 1361946371, + -1000492372, + 1053794558, + 1426776269, + 1324780134, + 1323155730, + 2093110064, + 692128569, + -556939255, + -272805012, + 1061248893, + -1131575644 + ], + [ + 441456354, + 312379356, + 715562026, + -338142069, + 1030250576, + -1840682110, + 1072587839, + 1339549557, + 1656762800, + 1815874066, + -647158478, + -1948257677, + 659197405, + -1759986344, + -943645411, + 869628965, + 406169495, + 458042256, + 1078789012, + -1440000188 + ], + [ + 1249840148, + 371671221, + -343062648, + -156075068, + 37453073, + 216294221, + -713609456, + -1189551464, + -1421478068, + -684160742, + -1028569913, + 69310608, + 1770114957, + -1683209425, + -820469568, + -1936378499, + 2039075811, + 862282925, + -1110343170, + -368325958 + ], + [ + 958083025, + 1965898874, + 317412228, + -983932141, + 845550424, + 797776315, + 618294672, + -1950052663, + 887978405, + -2063196813, + 1741811310, + 1640500053, + 272599409, + 627337982, + -1856075345, + 1608146178, + -984297265, + -1021749010, + 894293711, + 1884992374 + ], + [ + -25449280, + 32279138, + 208529177, + -897049873, + 414809897, + 1979913736, + -504103435, + 1172894569, + 1176372322, + 1506816888, + 960075015, + 1810105469, + 920408966, + 2045074748, + 924750155, + 1447010587, + 1676574850, + 2076209036, + 409708867, + 902905545 + ], + [ + 2006059821, + -514365872, + -1635554967, + 1650458380, + 566759488, + -307160187, + 931692420, + -2007233361, + -97837590, + -1007292082, + -909638054, + 2015702002, + 214909222, + -1544332364, + -580904290, + -1105301538, + 1757174505, + -896485480, + -615071905, + -712296576 + ], + [ + -1392827861, + 1203365457, + 328088858, + -270677036, + -446708419, + 715905543, + -1735604253, + 1854437227, + 278495776, + -1169703935, + 162549098, + 1512052061, + -1403607826, + 102425828, + 419352742, + 1331588881, + 289304589, + 1015370945, + 1175157267, + 1679887263 + ], + [ + -594552625, + 875610240, + -1079069630, + 1478747420, + 1937974657, + -883860788, + 262927258, + 1384436492, + -2030918413, + 880554046, + 1377446194, + 1594404938, + -1302414212, + 1104518021, + 1228516629, + -2135236968, + 881165915, + 542120757, + 2013539613, + -1962753987 + ], + [ + 1999647874, + 306747837, + -968898990, + -483277074, + 1144392237, + 2130510116, + -786601418, + 2077546105, + 554900921, + -1322783896, + 419816238, + 1296080908, + -1913221033, + -1808549828, + -2125228202, + 302253898, + -1899389095, + 1855879644, + -1597976739, + -1839915312 + ], + [ + -1040874624, + 1130370017, + 1747859374, + -1069431516, + 80026731, + 1175793135, + 1275140308, + -1490705667, + 1453037911, + 1577447503, + 1009072924, + 117028550, + -466497339, + 1672481371, + 1562764196, + 78260681, + 1039595774, + -429945360, + 1044327497, + -1763835985 + ], + [ + 1724748602, + 66779550, + 423756387, + -1334054088, + 122726242, + -2133933417, + 1675735425, + 1068879475, + -195585389, + 1442411482, + 1338185949, + -1636049877, + -1916215291, + -1058451349, + -2141943379, + 314102912, + 121515317, + 163114278, + -1831322972, + 1796139160 + ], + [ + 2046736657, + 388867549, + -2123856286, + -446786849, + 936945554, + 1068273953, + -1102154340, + 1385991220, + 2008120571, + 37246278, + -508774737, + 112221563, + -2030302225, + 100716791, + -2031795417, + -1998067435, + 229236886, + 46346232, + 2090412032, + 32963583 + ], + [ + 2060611642, + 1319031464, + -698907263, + 1830384752, + -74287262, + 407796737, + -1716029248, + -1234418792, + 95248871, + -982525218, + 428215107, + -1804263996, + -1069182005, + 709355378, + 481527835, + 2077299146, + 1716667296, + 1334123642, + -2143380523, + 440092496 + ], + [ + -1164220575, + -1001090846, + -1245885989, + -189393194, + -1615396458, + 136543860, + -1434084372, + 1960313, + 540790264, + -1375785594, + -1706414601, + 1315370136, + 1024485459, + -1024542179, + 1662249369, + -1197594347, + 1832180324, + -1660932455, + 687949884, + -2065158347 + ], + [ + -1299672520, + -409319423, + -1781137646, + -184794086, + -1150944060, + -1722480187, + 1984091005, + 2069446787, + 1985757520, + -1485630544, + -507154532, + -741224781, + -748219634, + -358184473, + 42995123, + -63810299, + -894692835, + 2060835699, + 2060134542, + -724901838 + ], + [ + -1197345013, + 140501290, + -562027901, + 2092281155, + -303349780, + -1976626494, + -1610337759, + -1827193674, + -503263537, + -788102211, + 1532146776, + 1677554607, + -1544637738, + 1909518412, + 360871530, + -829747846, + -400990439, + -251781873, + -1415033987, + 1578045072 + ], + [ + -2094500226, + -1848020205, + -973483099, + -1530777658, + -1881930284, + -500824598, + -529275386, + -1608167740, + 1332341185, + 1643141482, + 943541010, + 95269137, + 1921498410, + -642082307, + -313466396, + -2082766737, + 892500211, + -1750208766, + 710137289, + 1213012808 + ], + [ + -1215276875, + 481110017, + -843606717, + -436711033, + 128116870, + -1076000772, + 1274133483, + -452570759, + -164013057, + 1351586210, + -1169341199, + -205068476, + 2119419001, + -430685066, + -1651076455, + -925897915, + 1958027948, + 1112966194, + 1327343701, + -1058414773 + ], + [ + 1455536582, + -458046775, + 1266661374, + 1635898241, + -1253396264, + 1883314705, + 569436974, + 991645745, + 1102732047, + -1424004383, + 1055212442, + -1232933633, + -981119263, + -1646886560, + -1369581801, + 2056959040, + -738206164, + -485281559, + -86567298, + 914566642 + ], + [ + 316885895, + 155240784, + 1447190786, + -17423485, + 1155493209, + 1764782902, + 756560746, + -1995783686, + -1015805752, + 505710469, + -90707567, + -924426045, + -706797539, + -1810928756, + -1138474800, + 1214524899, + -2103480161, + 1446678133, + -689505587, + 1322334479 + ], + [ + -1047472655, + 1412085144, + 308818142, + 1509462000, + -1879899583, + 1277422444, + -985610828, + -606262327, + -1955200153, + 1950168708, + 607385274, + 2065539050, + 292871923, + -1468071351, + -698017986, + -258177519, + -1514686358, + 1853307394, + 1966750705, + 272710347 + ], + [ + 362462801, + 873989941, + 769286051, + -1878322186, + 134641870, + 1190221648, + 1316550273, + 412493124, + 1702439349, + 370236279, + -503754380, + -246267511, + 816152501, + 1659922401, + -1160124421, + -886940180, + 652212461, + 1132029101, + -433123272, + 614946023 + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_25x20_i32_outINT16/desc.json b/operators/type_conversion/cast/cast_25x20_i32_outINT16/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/type_conversion/cast/cast_25x20_i32_outINT16/desc.json @@ -0,0 +1,20 @@ +{ + "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" + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_25x20_i32_outINT16/input-0.json b/operators/type_conversion/cast/cast_25x20_i32_outINT16/input-0.json new file mode 100644 index 000000000..9267462fb --- /dev/null +++ b/operators/type_conversion/cast/cast_25x20_i32_outINT16/input-0.json @@ -0,0 +1,555 @@ +{ + "type": "int32", + "data": [ + [ + 288870119, + -775396883, + -266702083, + -1614541121, + -643637175, + -1537246378, + -1174951912, + -345899602, + 290884, + 1898334173, + -2035589218, + 1711812363, + -737700027, + 962782385, + 763955683, + 2022273179, + -1680547519, + 2006550750, + -1877367820, + 1620519853 + ], + [ + 653602132, + -77678027, + -439054230, + -1745488464, + 1296328661, + 979044284, + 1878237748, + 989643166, + 1962973801, + 1661320510, + -319576260, + 874975951, + -1012206865, + 1268010961, + 466492455, + -256298073, + 550584424, + -956974462, + 525467499, + -108182344 + ], + [ + -765455026, + 2042381127, + -1873672026, + 1106808771, + -1245519734, + -1191767368, + -1484257255, + -1707639844, + -1615335715, + 1428824816, + 1830872922, + 364122037, + -2088008462, + 1565506261, + 437475658, + 89643512, + 1921885318, + -387416007, + -601067241, + 1201809671 + ], + [ + 116385406, + 931495181, + 840884431, + 1457892841, + -785250183, + -1838120425, + -95983982, + 633733207, + 1361946371, + -1000492372, + 1053794558, + 1426776269, + 1324780134, + 1323155730, + 2093110064, + 692128569, + -556939255, + -272805012, + 1061248893, + -1131575644 + ], + [ + 441456354, + 312379356, + 715562026, + -338142069, + 1030250576, + -1840682110, + 1072587839, + 1339549557, + 1656762800, + 1815874066, + -647158478, + -1948257677, + 659197405, + -1759986344, + -943645411, + 869628965, + 406169495, + 458042256, + 1078789012, + -1440000188 + ], + [ + 1249840148, + 371671221, + -343062648, + -156075068, + 37453073, + 216294221, + -713609456, + -1189551464, + -1421478068, + -684160742, + -1028569913, + 69310608, + 1770114957, + -1683209425, + -820469568, + -1936378499, + 2039075811, + 862282925, + -1110343170, + -368325958 + ], + [ + 958083025, + 1965898874, + 317412228, + -983932141, + 845550424, + 797776315, + 618294672, + -1950052663, + 887978405, + -2063196813, + 1741811310, + 1640500053, + 272599409, + 627337982, + -1856075345, + 1608146178, + -984297265, + -1021749010, + 894293711, + 1884992374 + ], + [ + -25449280, + 32279138, + 208529177, + -897049873, + 414809897, + 1979913736, + -504103435, + 1172894569, + 1176372322, + 1506816888, + 960075015, + 1810105469, + 920408966, + 2045074748, + 924750155, + 1447010587, + 1676574850, + 2076209036, + 409708867, + 902905545 + ], + [ + 2006059821, + -514365872, + -1635554967, + 1650458380, + 566759488, + -307160187, + 931692420, + -2007233361, + -97837590, + -1007292082, + -909638054, + 2015702002, + 214909222, + -1544332364, + -580904290, + -1105301538, + 1757174505, + -896485480, + -615071905, + -712296576 + ], + [ + -1392827861, + 1203365457, + 328088858, + -270677036, + -446708419, + 715905543, + -1735604253, + 1854437227, + 278495776, + -1169703935, + 162549098, + 1512052061, + -1403607826, + 102425828, + 419352742, + 1331588881, + 289304589, + 1015370945, + 1175157267, + 1679887263 + ], + [ + -594552625, + 875610240, + -1079069630, + 1478747420, + 1937974657, + -883860788, + 262927258, + 1384436492, + -2030918413, + 880554046, + 1377446194, + 1594404938, + -1302414212, + 1104518021, + 1228516629, + -2135236968, + 881165915, + 542120757, + 2013539613, + -1962753987 + ], + [ + 1999647874, + 306747837, + -968898990, + -483277074, + 1144392237, + 2130510116, + -786601418, + 2077546105, + 554900921, + -1322783896, + 419816238, + 1296080908, + -1913221033, + -1808549828, + -2125228202, + 302253898, + -1899389095, + 1855879644, + -1597976739, + -1839915312 + ], + [ + -1040874624, + 1130370017, + 1747859374, + -1069431516, + 80026731, + 1175793135, + 1275140308, + -1490705667, + 1453037911, + 1577447503, + 1009072924, + 117028550, + -466497339, + 1672481371, + 1562764196, + 78260681, + 1039595774, + -429945360, + 1044327497, + -1763835985 + ], + [ + 1724748602, + 66779550, + 423756387, + -1334054088, + 122726242, + -2133933417, + 1675735425, + 1068879475, + -195585389, + 1442411482, + 1338185949, + -1636049877, + -1916215291, + -1058451349, + -2141943379, + 314102912, + 121515317, + 163114278, + -1831322972, + 1796139160 + ], + [ + 2046736657, + 388867549, + -2123856286, + -446786849, + 936945554, + 1068273953, + -1102154340, + 1385991220, + 2008120571, + 37246278, + -508774737, + 112221563, + -2030302225, + 100716791, + -2031795417, + -1998067435, + 229236886, + 46346232, + 2090412032, + 32963583 + ], + [ + 2060611642, + 1319031464, + -698907263, + 1830384752, + -74287262, + 407796737, + -1716029248, + -1234418792, + 95248871, + -982525218, + 428215107, + -1804263996, + -1069182005, + 709355378, + 481527835, + 2077299146, + 1716667296, + 1334123642, + -2143380523, + 440092496 + ], + [ + -1164220575, + -1001090846, + -1245885989, + -189393194, + -1615396458, + 136543860, + -1434084372, + 1960313, + 540790264, + -1375785594, + -1706414601, + 1315370136, + 1024485459, + -1024542179, + 1662249369, + -1197594347, + 1832180324, + -1660932455, + 687949884, + -2065158347 + ], + [ + -1299672520, + -409319423, + -1781137646, + -184794086, + -1150944060, + -1722480187, + 1984091005, + 2069446787, + 1985757520, + -1485630544, + -507154532, + -741224781, + -748219634, + -358184473, + 42995123, + -63810299, + -894692835, + 2060835699, + 2060134542, + -724901838 + ], + [ + -1197345013, + 140501290, + -562027901, + 2092281155, + -303349780, + -1976626494, + -1610337759, + -1827193674, + -503263537, + -788102211, + 1532146776, + 1677554607, + -1544637738, + 1909518412, + 360871530, + -829747846, + -400990439, + -251781873, + -1415033987, + 1578045072 + ], + [ + -2094500226, + -1848020205, + -973483099, + -1530777658, + -1881930284, + -500824598, + -529275386, + -1608167740, + 1332341185, + 1643141482, + 943541010, + 95269137, + 1921498410, + -642082307, + -313466396, + -2082766737, + 892500211, + -1750208766, + 710137289, + 1213012808 + ], + [ + -1215276875, + 481110017, + -843606717, + -436711033, + 128116870, + -1076000772, + 1274133483, + -452570759, + -164013057, + 1351586210, + -1169341199, + -205068476, + 2119419001, + -430685066, + -1651076455, + -925897915, + 1958027948, + 1112966194, + 1327343701, + -1058414773 + ], + [ + 1455536582, + -458046775, + 1266661374, + 1635898241, + -1253396264, + 1883314705, + 569436974, + 991645745, + 1102732047, + -1424004383, + 1055212442, + -1232933633, + -981119263, + -1646886560, + -1369581801, + 2056959040, + -738206164, + -485281559, + -86567298, + 914566642 + ], + [ + 316885895, + 155240784, + 1447190786, + -17423485, + 1155493209, + 1764782902, + 756560746, + -1995783686, + -1015805752, + 505710469, + -90707567, + -924426045, + -706797539, + -1810928756, + -1138474800, + 1214524899, + -2103480161, + 1446678133, + -689505587, + 1322334479 + ], + [ + -1047472655, + 1412085144, + 308818142, + 1509462000, + -1879899583, + 1277422444, + -985610828, + -606262327, + -1955200153, + 1950168708, + 607385274, + 2065539050, + 292871923, + -1468071351, + -698017986, + -258177519, + -1514686358, + 1853307394, + 1966750705, + 272710347 + ], + [ + 362462801, + 873989941, + 769286051, + -1878322186, + 134641870, + 1190221648, + 1316550273, + 412493124, + 1702439349, + 370236279, + -503754380, + -246267511, + 816152501, + 1659922401, + -1160124421, + -886940180, + 652212461, + 1132029101, + -433123272, + 614946023 + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_25x20_i32_outINT16/test.json b/operators/type_conversion/cast/cast_25x20_i32_outINT16/test.json new file mode 100644 index 000000000..c0c4ac456 --- /dev/null +++ b/operators/type_conversion/cast/cast_25x20_i32_outINT16/test.json @@ -0,0 +1,49 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CAST", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 25, + 20 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 25, + 20 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |