ai.onnx.Sign / build /webgpu /bench.json
Xenova's picture
Xenova HF Staff
sync 2e7068faf55e
67f32d3 verified
Raw
History Blame
2.05 kB
{
"op": "ai.onnx.Sign",
"cases": [
{
"name": "1m_f32",
"inputs": { "input": { "dtype": "float32", "shape": [1048576] } },
"outputs": { "output": { "dtype": "float32", "shape": [1048576] } }
},
{
"name": "sign-f32-1m-vec4",
"preset": "smoke",
"vars": { "dtype": "float32", "count": 1048576 },
"inputs": { "input": { "shape": [1048576], "dtype": "float32", "dist": "normal", "seed": 7201, "scale": 1 } },
"outputs": { "output": { "shape": [1048576], "dtype": "float32" } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "numel(shapes.input) * dtypeBytes(args.dtype) * 2" }]
}
},
{
"name": "sign-f32-1m-minus1-scalar-fallback",
"preset": "smoke",
"vars": { "dtype": "float32", "count": 1048575 },
"inputs": { "input": { "shape": [1048575], "dtype": "float32", "dist": "normal", "seed": 7202, "scale": 1 } },
"outputs": { "output": { "shape": [1048575], "dtype": "float32" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "numel(shapes.input) * dtypeBytes(args.dtype) * 2" }] }
},
{
"name": "sign-f16-8m-vec4",
"preset": "smoke",
"vars": { "dtype": "float16", "count": 8388608 },
"inputs": { "input": { "shape": [8388608], "dtype": "float16", "dist": "normal", "seed": 7203, "scale": 1 } },
"outputs": { "output": { "shape": [8388608], "dtype": "float16" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "numel(shapes.input) * dtypeBytes(args.dtype) * 2" }] }
},
{
"name": "sign-f16-8m-minus1-scalar-fallback",
"preset": "smoke",
"vars": { "dtype": "float16", "count": 8388607 },
"inputs": { "input": { "shape": [8388607], "dtype": "float16", "dist": "normal", "seed": 7204, "scale": 1 } },
"outputs": { "output": { "shape": [8388607], "dtype": "float16" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "numel(shapes.input) * dtypeBytes(args.dtype) * 2" }] }
}
]
}