{ "tests": [ { "name": "hardSwish float32 1D constant tensor", "inputs": { "x": { "shape": [24], "data": [ 0.7341583533045579, 9.118859151005996, 3.545238531520827, 2.621943879280181, -6.445507690595167, -1.6835596550754381, 5.523179785756591, -5.958856051028132, -9.169189933081544, 6.420943542920213, -3.293031330275471, 1.0410166785810624, -7.246322671816956, -0.9472730969847909, -5.778352255817807, 3.185229125228698, -7.261818072290236, 4.174602615173795, 3.7802628241590686, -6.07124038718255, -9.909919471919547, -7.744259390113584, -8.286120816748381, 8.083491160956697 ], "type": "float32", "constant": true } }, "expected": { "name": "output", "shape": [24], "data": [ 0.4569105803966522, 9.11885929107666, 3.545238494873047, 2.4567370414733887, 0, -0.3693843185901642, 5.52318000793457, 0, 0, 6.420943737030029, 0, 0.7011276483535767, 0, -0.3240821659564972, 0, 3.1852290630340576, 0, 4.174602508544922, 3.7802627086639404, 0, 0, 0, 0, 8.083491325378418 ], "type": "float32" } }, { "name": "hardSwish float32 1D tensor", "inputs": { "x": { "shape": [24], "data": [ 0.7341583533045579, 9.118859151005996, 3.545238531520827, 2.621943879280181, -6.445507690595167, -1.6835596550754381, 5.523179785756591, -5.958856051028132, -9.169189933081544, 6.420943542920213, -3.293031330275471, 1.0410166785810624, -7.246322671816956, -0.9472730969847909, -5.778352255817807, 3.185229125228698, -7.261818072290236, 4.174602615173795, 3.7802628241590686, -6.07124038718255, -9.909919471919547, -7.744259390113584, -8.286120816748381, 8.083491160956697 ], "type": "float32" } }, "expected": { "name": "output", "shape": [24], "data": [ 0.4569105803966522, 9.11885929107666, 3.545238494873047, 2.4567370414733887, 0, -0.3693843185901642, 5.52318000793457, 0, 0, 6.420943737030029, 0, 0.7011276483535767, 0, -0.3240821659564972, 0, 3.1852290630340576, 0, 4.174602508544922, 3.7802627086639404, 0, 0, 0, 0, 8.083491325378418 ], "type": "float32" } }, { "name": "hardSwish float32 2D tensor", "inputs": { "x": { "shape": [4, 6], "data": [ 0.7341583533045579, 9.118859151005996, 3.545238531520827, 2.621943879280181, -6.445507690595167, -1.6835596550754381, 5.523179785756591, -5.958856051028132, -9.169189933081544, 6.420943542920213, -3.293031330275471, 1.0410166785810624, -7.246322671816956, -0.9472730969847909, -5.778352255817807, 3.185229125228698, -7.261818072290236, 4.174602615173795, 3.7802628241590686, -6.07124038718255, -9.909919471919547, -7.744259390113584, -8.286120816748381, 8.083491160956697 ], "type": "float32" } }, "expected": { "name": "output", "shape": [4, 6], "data": [ 0.4569105803966522, 9.11885929107666, 3.545238494873047, 2.4567370414733887, 0, -0.3693843185901642, 5.52318000793457, 0, 0, 6.420943737030029, 0, 0.7011276483535767, 0, -0.3240821659564972, 0, 3.1852290630340576, 0, 4.174602508544922, 3.7802627086639404, 0, 0, 0, 0, 8.083491325378418 ], "type": "float32" } }, { "name": "hardSwish float32 3D tensor", "inputs": { "x": { "shape": [2, 3, 4], "data": [ 0.7341583533045579, 9.118859151005996, 3.545238531520827, 2.621943879280181, -6.445507690595167, -1.6835596550754381, 5.523179785756591, -5.958856051028132, -9.169189933081544, 6.420943542920213, -3.293031330275471, 1.0410166785810624, -7.246322671816956, -0.9472730969847909, -5.778352255817807, 3.185229125228698, -7.261818072290236, 4.174602615173795, 3.7802628241590686, -6.07124038718255, -9.909919471919547, -7.744259390113584, -8.286120816748381, 8.083491160956697 ], "type": "float32" } }, "expected": { "name": "output", "shape": [2, 3, 4], "data": [ 0.4569105803966522, 9.11885929107666, 3.545238494873047, 2.4567370414733887, 0, -0.3693843185901642, 5.52318000793457, 0, 0, 6.420943737030029, 0, 0.7011276483535767, 0, -0.3240821659564972, 0, 3.1852290630340576, 0, 4.174602508544922, 3.7802627086639404, 0, 0, 0, 0, 8.083491325378418 ], "type": "float32" } }, { "name": "hardSwish float32 4D tensor", "inputs": { "x": { "shape": [2, 2, 2, 3], "data": [ 0.7341583533045579, 9.118859151005996, 3.545238531520827, 2.621943879280181, -6.445507690595167, -1.6835596550754381, 5.523179785756591, -5.958856051028132, -9.169189933081544, 6.420943542920213, -3.293031330275471, 1.0410166785810624, -7.246322671816956, -0.9472730969847909, -5.778352255817807, 3.185229125228698, -7.261818072290236, 4.174602615173795, 3.7802628241590686, -6.07124038718255, -9.909919471919547, -7.744259390113584, -8.286120816748381, 8.083491160956697 ], "type": "float32" } }, "expected": { "name": "output", "shape": [2, 2, 2, 3], "data": [ 0.4569105803966522, 9.11885929107666, 3.545238494873047, 2.4567370414733887, 0, -0.3693843185901642, 5.52318000793457, 0, 0, 6.420943737030029, 0, 0.7011276483535767, 0, -0.3240821659564972, 0, 3.1852290630340576, 0, 4.174602508544922, 3.7802627086639404, 0, 0, 0, 0, 8.083491325378418 ], "type": "float32" } }, { "name": "hardSwish float32 5D tensor", "inputs": { "x": { "shape": [2, 1, 4, 1, 3], "data": [ 0.7341583533045579, 9.118859151005996, 3.545238531520827, 2.621943879280181, -6.445507690595167, -1.6835596550754381, 5.523179785756591, -5.958856051028132, -9.169189933081544, 6.420943542920213, -3.293031330275471, 1.0410166785810624, -7.246322671816956, -0.9472730969847909, -5.778352255817807, 3.185229125228698, -7.261818072290236, 4.174602615173795, 3.7802628241590686, -6.07124038718255, -9.909919471919547, -7.744259390113584, -8.286120816748381, 8.083491160956697 ], "type": "float32" } }, "expected": { "name": "output", "shape": [2, 1, 4, 1, 3], "data": [ 0.4569105803966522, 9.11885929107666, 3.545238494873047, 2.4567370414733887, 0, -0.3693843185901642, 5.52318000793457, 0, 0, 6.420943737030029, 0, 0.7011276483535767, 0, -0.3240821659564972, 0, 3.1852290630340576, 0, 4.174602508544922, 3.7802627086639404, 0, 0, 0, 0, 8.083491325378418 ], "type": "float32" } } ] }