{ "tests": [ { "name": "lesserOrEqual float32 0D scalar", "inputs": { "a": { "shape": [], "data": [ -6.978766599337822 ], "type": "float32" }, "b": { "shape": [], "data": [ 6.613064588921308 ], "type": "float32" } }, "expected": { "shape": [], "data": [ 1 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 1D constant tensors", "inputs": { "a": { "shape": [24], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32", "constant": true }, "b": { "shape": [24], "data": [ 5.498841374763742, 1.7662660534986596, -2.815573112568557, -6.048312187382399, 9.49753657859197, -2.1015747067374635, -4.079037092104509, 5.314039986892048, 0.0387145550620982, -0.30728287605858995, 4.975426828050438, 3.4626017503711424, 8.605685214066689, 1.5140481393702743, 2.009095893644295, -0.3105867764637402, -4.244836158037981, -3.5506834915660024, -2.5953286338985615, -4.999806170449843, 3.1189506609780526, 9.70514084988082, 9.546739178733759, -6.189505543544822 ], "type": "float32", "constant": true } }, "expected": { "shape": [24], "data": [ 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 1D tensors", "inputs": { "a": { "shape": [24], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32" }, "b": { "shape": [24], "data": [ 5.498841374763742, 1.7662660534986596, -2.815573112568557, -6.048312187382399, 9.49753657859197, -2.1015747067374635, -4.079037092104509, 5.314039986892048, 0.0387145550620982, -0.30728287605858995, 4.975426828050438, 3.4626017503711424, 8.605685214066689, 1.5140481393702743, 2.009095893644295, -0.3105867764637402, -4.244836158037981, -3.5506834915660024, -2.5953286338985615, -4.999806170449843, 3.1189506609780526, 9.70514084988082, 9.546739178733759, -6.189505543544822 ], "type": "float32" } }, "expected": { "shape": [24], "data": [ 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 2D tensors", "inputs": { "a": { "shape": [4, 6], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32" }, "b": { "shape": [4, 6], "data": [ 5.498841374763742, 1.7662660534986596, -2.815573112568557, -6.048312187382399, 9.49753657859197, -2.1015747067374635, -4.079037092104509, 5.314039986892048, 0.0387145550620982, -0.30728287605858995, 4.975426828050438, 3.4626017503711424, 8.605685214066689, 1.5140481393702743, 2.009095893644295, -0.3105867764637402, -4.244836158037981, -3.5506834915660024, -2.5953286338985615, -4.999806170449843, 3.1189506609780526, 9.70514084988082, 9.546739178733759, -6.189505543544822 ], "type": "float32" } }, "expected": { "shape": [4, 6], "data": [ 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 3D tensors", "inputs": { "a": { "shape": [2, 3, 4], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32" }, "b": { "shape": [2, 3, 4], "data": [ 5.498841374763742, 1.7662660534986596, -2.815573112568557, -6.048312187382399, 9.49753657859197, -2.1015747067374635, -4.079037092104509, 5.314039986892048, 0.0387145550620982, -0.30728287605858995, 4.975426828050438, 3.4626017503711424, 8.605685214066689, 1.5140481393702743, 2.009095893644295, -0.3105867764637402, -4.244836158037981, -3.5506834915660024, -2.5953286338985615, -4.999806170449843, 3.1189506609780526, 9.70514084988082, 9.546739178733759, -6.189505543544822 ], "type": "float32" } }, "expected": { "shape": [2, 3, 4], "data": [ 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 4D tensors", "inputs": { "a": { "shape": [2, 2, 2, 3], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32" }, "b": { "shape": [2, 2, 2, 3], "data": [ 5.498841374763742, 1.7662660534986596, -2.815573112568557, -6.048312187382399, 9.49753657859197, -2.1015747067374635, -4.079037092104509, 5.314039986892048, 0.0387145550620982, -0.30728287605858995, 4.975426828050438, 3.4626017503711424, 8.605685214066689, 1.5140481393702743, 2.009095893644295, -0.3105867764637402, -4.244836158037981, -3.5506834915660024, -2.5953286338985615, -4.999806170449843, 3.1189506609780526, 9.70514084988082, 9.546739178733759, -6.189505543544822 ], "type": "float32" } }, "expected": { "shape": [2, 2, 2, 3], "data": [ 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 5D tensors", "inputs": { "a": { "shape": [2, 2, 1, 2, 3], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32" }, "b": { "shape": [2, 2, 1, 2, 3], "data": [ 5.498841374763742, 1.7662660534986596, -2.815573112568557, -6.048312187382399, 9.49753657859197, -2.1015747067374635, -4.079037092104509, 5.314039986892048, 0.0387145550620982, -0.30728287605858995, 4.975426828050438, 3.4626017503711424, 8.605685214066689, 1.5140481393702743, 2.009095893644295, -0.3105867764637402, -4.244836158037981, -3.5506834915660024, -2.5953286338985615, -4.999806170449843, 3.1189506609780526, 9.70514084988082, 9.546739178733759, -6.189505543544822 ], "type": "float32" } }, "expected": { "shape": [2, 2, 1, 2, 3], "data": [ 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 broadcast 0D to 4D", "inputs": { "a": { "shape": [], "data": [ 4.840611135629258 ], "type": "float32" }, "b": { "shape": [2, 2, 2, 3], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32" } }, "expected": { "shape": [2, 2, 2, 3], "data": [ 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 broadcast 1D to 4D", "inputs": { "a": { "shape": [1], "data": [ 4.840611135629258 ], "type": "float32" }, "b": { "shape": [2, 2, 2, 3], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32" } }, "expected": { "shape": [2, 2, 2, 3], "data": [ 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 broadcast 2D to 4D", "inputs": { "a": { "shape": [2, 2, 2, 3], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32" }, "b": { "shape": [2, 3], "data": [ -8.499546963452499, -8.321309725362518, -7.182070889034953, 3.418306360706925, 5.389469370006754, 6.9043128878217 ], "type": "float32" } }, "expected": { "shape": [2, 2, 2, 3], "data": [ 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 broadcast 3D to 4D", "inputs": { "a": { "shape": [2, 2, 2, 3], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32" }, "b": { "shape": [2, 2, 1], "data": [ 4.195140983741625, 7.828658911400325, 6.690202989995797, 0.924701041097018 ], "type": "float32" } }, "expected": { "shape": [2, 2, 2, 3], "data": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0 ], "type": "uint8" } }, { "name": "lesserOrEqual float32 broadcast 4D to 4D", "inputs": { "a": { "shape": [1, 1, 1, 1], "data": [ 4.840611135629258 ], "type": "float32" }, "b": { "shape": [2, 2, 2, 3], "data": [ -8.28400872674051, -3.2192645259702735, -6.543179908675301, -0.5402850743134735, -5.413843546081334, 5.5837429023307585, 1.5017805895450707, 6.592243911021967, -9.925486373960158, -7.134800104191736, -4.915772925181514, -9.137166899591985, 9.403683415346574, -9.831502572671727, -2.01231810920369, -6.5976898409038665, -8.269321065543842, 8.281030248217476, 1.645282309888799, -1.486272662516086, -4.998753723234106, -0.9209934547883556, -9.434256078100471, 9.81323851825412 ], "type": "float32" } }, "expected": { "shape": [2, 2, 2, 3], "data": [ 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1 ], "type": "uint8" } } ] }