File size: 5,615 Bytes
bbc3807
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
  "op": "ai.onnx.DynamicQuantizeLinear",
  "cases": [
    {
      "name": "f32_64k",
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [65536],
          "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.017, "scale": 3.0 }
        }
      },
      "outputs": {
        "y": { "dtype": "uint8", "shape": [65536] },
        "y_scale": { "dtype": "float32", "shape": [1] },
        "y_zero_point": { "dtype": "uint8", "shape": [1] }
      }
    },
    {
      "name": "f32_4m",
      "preset": "smoke",
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [2048, 2048],
          "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.017, "scale": 3.0 }
        }
      },
      "outputs": {
        "y": { "dtype": "uint8", "shape": [2048, 2048] },
        "y_scale": { "dtype": "float32", "shape": [1] },
        "y_zero_point": { "dtype": "uint8", "shape": [1] }
      },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "name": "useful_onnx_payload", "value": "5 * numel(shapes.x) + 5" },
          {
            "type": "bandwidth",
            "name": "physical_3pass_storage",
            "value": "12 * numel(shapes.x) + 16 * min(256, ceilDiv(numel(shapes.x), 1024)) + 16"
          }
        ]
      }
    },
    {
      "name": "alignment_cliff_non_vec4_4194303",
      "preset": "smoke",
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [4194303],
          "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.017, "scale": 3.0 }
        }
      },
      "outputs": {
        "y": { "dtype": "uint8", "shape": [4194303] },
        "y_scale": { "dtype": "float32", "shape": [1] },
        "y_zero_point": { "dtype": "uint8", "shape": [1] }
      },
      "bench": {
        "primary": true,
        "metrics": [
          { "type": "bandwidth", "name": "useful_onnx_payload", "value": "5 * numel(shapes.x) + 5" },
          {
            "type": "bandwidth",
            "name": "physical_3pass_storage",
            "value": "12 * numel(shapes.x) + 16 * min(256, ceilDiv(numel(shapes.x), 1024)) + 16"
          }
        ]
      }
    },
    {
      "name": "alignment_healthy_vec4_4194304",
      "preset": "smoke",
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [4194304],
          "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.017, "scale": 3.0 }
        }
      },
      "outputs": {
        "y": { "dtype": "uint8", "shape": [4194304] },
        "y_scale": { "dtype": "float32", "shape": [1] },
        "y_zero_point": { "dtype": "uint8", "shape": [1] }
      },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "name": "useful_onnx_payload", "value": "5 * numel(shapes.x) + 5" },
          {
            "type": "bandwidth",
            "name": "physical_3pass_storage",
            "value": "12 * numel(shapes.x) + 16 * min(256, ceilDiv(numel(shapes.x), 1024)) + 16"
          }
        ]
      }
    },
    {
      "name": "serial_finalize_uncapped_non_vec4_2m",
      "preset": "smoke",
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [2097153],
          "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.017, "scale": 3.0 }
        }
      },
      "outputs": {
        "y": { "dtype": "uint8", "shape": [2097153] },
        "y_scale": { "dtype": "float32", "shape": [1] },
        "y_zero_point": { "dtype": "uint8", "shape": [1] }
      },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "name": "useful_onnx_payload", "value": "5 * numel(shapes.x) + 5" },
          {
            "type": "bandwidth",
            "name": "physical_3pass_storage",
            "value": "12 * numel(shapes.x) + 16 * min(256, ceilDiv(numel(shapes.x), 1024)) + 16"
          }
        ]
      }
    },
    {
      "name": "grid_stride_capped_finalize_2m",
      "preset": "smoke",
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [2097152],
          "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.017, "scale": 3.0 }
        }
      },
      "outputs": {
        "y": { "dtype": "uint8", "shape": [2097152] },
        "y_scale": { "dtype": "float32", "shape": [1] },
        "y_zero_point": { "dtype": "uint8", "shape": [1] }
      },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "name": "useful_onnx_payload", "value": "5 * numel(shapes.x) + 5" },
          {
            "type": "bandwidth",
            "name": "physical_3pass_storage",
            "value": "12 * numel(shapes.x) + 16 * min(256, ceilDiv(numel(shapes.x), 1024)) + 16"
          }
        ]
      }
    },
    {
      "name": "below_gridcap_threshold_non_vec4_262143",
      "preset": "smoke",
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [262143],
          "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.017, "scale": 3.0 }
        }
      },
      "outputs": {
        "y": { "dtype": "uint8", "shape": [262143] },
        "y_scale": { "dtype": "float32", "shape": [1] },
        "y_zero_point": { "dtype": "uint8", "shape": [1] }
      },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "name": "useful_onnx_payload", "value": "5 * numel(shapes.x) + 5" },
          {
            "type": "bandwidth",
            "name": "physical_3pass_storage",
            "value": "12 * numel(shapes.x) + 16 * min(256, ceilDiv(numel(shapes.x), 1024)) + 16"
          }
        ]
      }
    }
  ]
}