File size: 4,923 Bytes
50c1187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "op": "ai.onnx.Upsample",
  "tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] },
  "cases": [
    {
      "name": "nearest-2x-256x256-f32",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 3, 256, 256] },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 512, 512] } },
      "bench": {
        "primary": true,
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
      }
    },
    {
      "name": "linear-2x-256x256-f32",
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 3, 256, 256] },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 512, 512] } },
      "bench": {
        "primary": true,
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
      }
    },
    {
      "name": "nearest-1point5x-fallback-256x256-f32",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 3, 256, 256] },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 1.5, 1.5] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 384, 384] } },
      "bench": {
        "primary": true,
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
      }
    },
    {
      "name": "nearest-2x-alignment-cliff-510w-f32",
      "preset": "smoke",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 3, 256, 255] },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 512, 510] } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }] }
    },
    {
      "name": "linear-2x-alignment-cliff-514w-f32",
      "preset": "smoke",
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 3, 256, 257] },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 512, 514] } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }] }
    },
    {
      "name": "nearest-2x-256x256-f16",
      "preset": "smoke",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float16", "shape": [1, 3, 256, 256] },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float16", "shape": [1, 3, 512, 512] } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 2" }] }
    },
    {
      "name": "linear-2x-256x256-f16",
      "preset": "smoke",
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": { "dtype": "float16", "shape": [1, 3, 256, 256] },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float16", "shape": [1, 3, 512, 512] } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 2" }] }
    },
    {
      "name": "linear-3d-ncdhw-2x-generic-f32",
      "preset": "stress",
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 2, 32, 32, 32], "dist": "normal", "seed": 101, "scale": 2 },
        "scales": {
          "dtype": "float32",
          "shape": [5],
          "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0, 2.0] }
        }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 64, 64, 64] } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }] }
    },
    {
      "name": "linear-rank4-nchw-scaled-generic-16tap-f32",
      "preset": "stress",
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 128, 128], "dist": "normal", "seed": 202, "scale": 2 },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [2.0, 2.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [2, 2, 256, 256] } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }] }
    }
  ]
}