File size: 2,051 Bytes
67f32d3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  "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" }] }
    }
  ]
}