File size: 6,417 Bytes
e9fc83c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "op": "ai.onnx.GridSample",
  "cases": [
    {
      "name": "1x3x256x256_to_256_linear",
      "attrs": { "mode": "linear", "padding_mode": "zeros", "align_corners": 0 },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 3, 256, 256] },
        "grid": { "dtype": "float32", "shape": [1, 256, 256, 2] }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 256, 256] } }
    },
    {
      "name": "nchw_1x32x256x256_linear_zeros_f32_healthy",
      "preset": "smoke",
      "attrs": { "mode": "linear", "padding_mode": "zeros", "align_corners": 0 },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 32, 256, 256], "dist": "normal", "seed": 811, "scale": 1 },
        "grid": { "dtype": "float32", "shape": [1, 256, 256, 2], "dist": "normal", "seed": 812, "scale": 1 }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 32, 256, 256] } },
      "bench": {
        "primary": true,
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.grid) + numel(shapes.y)) * 4" }]
      }
    },
    {
      "name": "nchw_1x32x256x256_cubic_zeros_f32_16reads_pathology",
      "preset": "smoke",
      "attrs": { "mode": "cubic", "padding_mode": "zeros", "align_corners": 0 },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 32, 256, 256], "dist": "normal", "seed": 821, "scale": 1 },
        "grid": { "dtype": "float32", "shape": [1, 256, 256, 2], "dist": "normal", "seed": 822, "scale": 1 }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 32, 256, 256] } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.grid) + numel(shapes.y)) * 4" }]
      }
    },
    {
      "name": "nchw_1x32x256x256_linear_reflection_f32_reflectcoord_pathology",
      "preset": "smoke",
      "attrs": { "mode": "linear", "padding_mode": "reflection", "align_corners": 1 },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 32, 256, 256], "dist": "normal", "seed": 831, "scale": 1 },
        "grid": { "dtype": "float32", "shape": [1, 256, 256, 2], "dist": "normal", "seed": 832, "scale": 1.5 }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 32, 256, 256] } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.grid) + numel(shapes.y)) * 4" }]
      }
    },
    {
      "name": "nchw_1x32x256x256_linear_zeros_f16_halfbandwidth_pathology",
      "preset": "smoke",
      "attrs": { "mode": "linear", "padding_mode": "zeros", "align_corners": 0 },
      "inputs": {
        "x": { "dtype": "float16", "shape": [1, 32, 256, 256], "dist": "normal", "seed": 841, "scale": 1 },
        "grid": { "dtype": "float16", "shape": [1, 256, 256, 2], "dist": "normal", "seed": 842, "scale": 1 }
      },
      "outputs": { "y": { "dtype": "float16", "shape": [1, 32, 256, 256] } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.grid) + numel(shapes.y)) * 2" }]
      }
    },
    {
      "name": "ncdhw_1x4x16x32x32_linear_zeros_f32_volumetric_unbenched_variant",
      "preset": "smoke",
      "attrs": { "mode": "linear", "padding_mode": "zeros", "align_corners": 0 },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 4, 16, 32, 32], "dist": "normal", "seed": 851, "scale": 1 },
        "grid": { "dtype": "float32", "shape": [1, 16, 32, 32, 3], "dist": "normal", "seed": 852, "scale": 1 }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 4, 16, 32, 32] } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.grid) + numel(shapes.y)) * 4" }]
      }
    },
    {
      "name": "nchw_1x8x1024x1024_linear_zeros_f32_dispatch_cliff_over16m",
      "preset": "smoke",
      "attrs": { "mode": "linear", "padding_mode": "zeros", "align_corners": 0 },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 8, 256, 256], "dist": "normal", "seed": 861, "scale": 1 },
        "grid": { "dtype": "float32", "shape": [1, 1024, 1024, 2], "dist": "normal", "seed": 862, "scale": 1 }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 8, 1024, 1024] } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.grid) + numel(shapes.y)) * 4" }]
      }
    },
    {
      "name": "nchw_1x3x2049x2731_linear_zeros_f32_partial_channel_dispatch_cliff",
      "preset": "stress",
      "attrs": { "mode": "linear", "padding_mode": "zeros", "align_corners": 0 },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 3, 16, 16], "dist": "normal", "seed": 863, "scale": 1 },
        "grid": { "dtype": "float32", "shape": [1, 2049, 2731, 2], "dist": "normal", "seed": 864, "scale": 0.9 }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 2049, 2731] } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.grid) + numel(shapes.y)) * 4" }]
      }
    },
    {
      "name": "nchw_cubic_reflection_highC_f32_perchannel_recompute_amp",
      "preset": "stress",
      "attrs": { "mode": "cubic", "padding_mode": "reflection", "align_corners": 0 },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 48, 192, 192], "dist": "normal", "seed": 9101, "scale": 1 },
        "grid": { "dtype": "float32", "shape": [1, 320, 320, 2], "dist": "normal", "seed": 9102, "scale": 1.5 }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 48, 320, 320] } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.grid) + numel(shapes.y)) * 4" }]
      }
    },
    {
      "name": "ncdhw_linear_reflection_f32_trilinear_reflect_amp",
      "preset": "stress",
      "attrs": { "mode": "linear", "padding_mode": "reflection", "align_corners": 0 },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 8, 24, 32, 32], "dist": "normal", "seed": 9201, "scale": 1 },
        "grid": { "dtype": "float32", "shape": [1, 48, 48, 48, 3], "dist": "normal", "seed": 9202, "scale": 1.5 }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 8, 48, 48, 48] } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.grid) + numel(shapes.y)) * 4" }]
      }
    }
  ]
}