ai.onnx.Relu / build /webgpu /bench.json
Xenova's picture
Xenova HF Staff
sync 2e7068faf55e
b372242 verified
Raw
History Blame
1.83 kB
{
"op": "ai.onnx.Relu",
"tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] },
"cases": [
{
"name": "relu-f32-1m",
"preset": "smoke",
"vars": { "dtype": "float32", "count": 1048576 },
"inputs": { "x": { "shape": [1048576], "dtype": "float32", "dist": "normal", "seed": 101, "scale": 2 } },
"outputs": { "y": { "shape": [1048576], "dtype": "float32" } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }]
}
},
{
"name": "relu-f32-8m",
"preset": "smoke",
"vars": { "dtype": "float32", "count": 8388608 },
"inputs": { "x": { "shape": [8388608], "dtype": "float32", "seed": 7015, "dist": "normal", "scale": 2 } },
"outputs": { "y": { "shape": [8388608], "dtype": "float32" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] }
},
{
"name": "relu-f16-8m",
"preset": "smoke",
"vars": { "dtype": "float16", "count": 8388608 },
"inputs": { "x": { "shape": [8388608], "dtype": "float16", "seed": 7016, "dist": "normal", "scale": 2 } },
"outputs": { "y": { "shape": [8388608], "dtype": "float16" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] }
},
{
"name": "relu-f32-scalar-fallback-8m",
"preset": "edge",
"vars": { "dtype": "float32", "count": 8388607 },
"inputs": { "x": { "shape": [8388607], "dtype": "float32", "dist": "normal", "seed": 7025, "scale": 2 } },
"outputs": { "y": { "shape": [8388607], "dtype": "float32", "dist": "empty" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] }
}
]
}