ai.onnx.IsInf / build /webgpu /bench.json
Xenova's picture
Xenova HF Staff
sync 2e7068faf55e
10eb8e1 verified
Raw
History Blame
2.02 kB
{
"op": "ai.onnx.IsInf",
"cases": [
{
"name": "isinf-f32-1m",
"inputs": { "x": { "dtype": "float32", "shape": [1048576], "dist": "normal", "seed": 911, "scale": 1 } },
"outputs": { "y": { "dtype": "bool", "shape": [1048576] } }
},
{
"name": "isinf-f32-1m-vec4",
"preset": "smoke",
"vars": { "dtype": "float32", "count": 1048576 },
"inputs": { "x": { "shape": [1048576], "dtype": "float32", "dist": "normal", "seed": 9111, "scale": 1 } },
"outputs": { "y": { "shape": [1048576], "dtype": "bool" } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "numel(shapes.x) * dtypeBytes(args.dtype) * 2" }]
}
},
{
"name": "isinf-f32-1m-odd-scalar-fallback",
"preset": "smoke",
"vars": { "dtype": "float32", "count": 1048577 },
"inputs": { "x": { "shape": [1048577], "dtype": "float32", "dist": "normal", "seed": 9112, "scale": 1 } },
"outputs": { "y": { "shape": [1048577], "dtype": "bool" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "numel(shapes.x) * dtypeBytes(args.dtype) * 2" }] }
},
{
"name": "isinf-f16-1m-vec4",
"preset": "smoke",
"vars": { "dtype": "float16", "count": 1048576 },
"inputs": { "x": { "shape": [1048576], "dtype": "float16", "dist": "normal", "seed": 9113, "scale": 1 } },
"outputs": { "y": { "shape": [1048576], "dtype": "bool" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "numel(shapes.x) * dtypeBytes(args.dtype) * 2" }] }
},
{
"name": "isinf-f16-1m-odd-scalar-fallback",
"preset": "smoke",
"vars": { "dtype": "float16", "count": 1048577 },
"inputs": { "x": { "shape": [1048577], "dtype": "float16", "dist": "normal", "seed": 9114, "scale": 1 } },
"outputs": { "y": { "shape": [1048577], "dtype": "bool" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "numel(shapes.x) * dtypeBytes(args.dtype) * 2" }] }
}
]
}