File size: 8,332 Bytes
c1dd5b3 | 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 | {
"op": "ai.onnx.Resize",
"tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] },
"cases": [
{
"name": "nchw_1x64_256_to_512_linear_decoder",
"preset": "smoke",
"attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" },
"inputs": { "x": { "dtype": "float32", "shape": [1, 64, 256, 256], "dist": "normal", "seed": 731, "scale": 1 } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 64, 512, 512] } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
}
},
{
"name": "nchw_1x64_256_to_512_linear_asymmetric_decoder",
"preset": "smoke",
"attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric" },
"inputs": { "x": { "dtype": "float32", "shape": [1, 64, 256, 256], "dist": "normal", "seed": 732, "scale": 1 } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 64, 512, 512] } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }] }
},
{
"name": "nchw_1x3_256_to_512_linear",
"attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" },
"inputs": { "x": { "dtype": "float32", "shape": [1, 3, 256, 256] } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 3, 512, 512] } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
}
},
{
"name": "nchw_1x32_256_to_512_linear_align_corners_large",
"preset": "smoke",
"attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" },
"inputs": { "x": { "dtype": "float32", "shape": [1, 32, 256, 256], "dist": "normal", "seed": 751, "scale": 1 } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 32, 512, 512] } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
}
},
{
"name": "nchw_1x3_256_to_512_linear_align_corners_fallback",
"attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" },
"inputs": { "x": { "dtype": "float32", "shape": [1, 3, 256, 256] } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 3, 512, 512] } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
}
},
{
"name": "nchw_1x3_256_to_512_nearest_2x",
"attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" },
"inputs": { "x": { "dtype": "float32", "shape": [1, 3, 256, 256] } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 3, 512, 512] } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
}
},
{
"name": "nchw_1x128_64_to_128_nearest_2x_f16_vae",
"preset": "smoke",
"attrs": {
"mode": "nearest",
"coordinate_transformation_mode": "asymmetric",
"nearest_mode": "floor",
"scales": [1, 1, 2, 2]
},
"inputs": { "x": { "dtype": "float16", "shape": [1, 128, 64, 64], "dist": "normal", "seed": 601, "scale": 0.2 } },
"outputs": { "y": { "dtype": "float16", "shape": [1, 128, 128, 128] } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 2" }] }
},
{
"name": "nchw_1x3_176_to_528_nearest_3x",
"attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" },
"inputs": { "x": { "dtype": "float32", "shape": [1, 3, 176, 176] } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 3, 528, 528] } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
}
},
{
"name": "nchw_1x3_128_to_512_nearest_4x",
"attrs": {
"mode": "nearest",
"coordinate_transformation_mode": "half_pixel",
"nearest_mode": "round_prefer_floor"
},
"inputs": { "x": { "dtype": "float32", "shape": [1, 3, 128, 128] } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 3, 512, 512] } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
}
},
{
"name": "nchw_1x64_256_to_510_linear_w_odd_scalar_cliff",
"preset": "smoke",
"attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" },
"inputs": { "x": { "dtype": "float32", "shape": [1, 64, 256, 256], "dist": "normal", "seed": 781, "scale": 1 } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 64, 512, 510] } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
}
},
{
"name": "nchw_1x64_256_to_512_linear_f16_vec4_decoder",
"preset": "smoke",
"attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" },
"inputs": { "x": { "dtype": "float16", "shape": [1, 64, 256, 256], "dist": "normal", "seed": 782, "scale": 1 } },
"outputs": { "y": { "dtype": "float16", "shape": [1, 64, 512, 512] } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 2" }]
}
},
{
"name": "nchw_1x64_256_to_510_linear_f16_w_odd_scalar_cliff",
"preset": "smoke",
"attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" },
"inputs": { "x": { "dtype": "float16", "shape": [1, 64, 256, 256], "dist": "normal", "seed": 783, "scale": 1 } },
"outputs": { "y": { "dtype": "float16", "shape": [1, 64, 512, 510] } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 2" }] }
},
{
"name": "nchw_1x64_512_to_256_linear_downsample_vec4",
"preset": "smoke",
"attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" },
"inputs": { "x": { "dtype": "float32", "shape": [1, 64, 512, 512], "dist": "normal", "seed": 784, "scale": 1 } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 64, 256, 256] } },
"bench": {
"primary": true,
"metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }]
}
},
{
"name": "antialias_linear_8x_downsample_tap_explosion_stress",
"preset": "stress",
"attrs": {
"mode": "linear",
"antialias": 1,
"coordinate_transformation_mode": "half_pixel",
"scales": [1, 1, 0.125, 0.125]
},
"inputs": { "x": { "dtype": "float32", "shape": [1, 32, 256, 256], "dist": "normal", "seed": 901, "scale": 1 } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 32, 32, 32], "dist": "empty" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }] }
},
{
"name": "generic_nhwc_linear_2x_upsample_scalar_no_vec4_stress",
"preset": "stress",
"attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" },
"inputs": { "x": { "dtype": "float32", "shape": [1, 256, 256, 16], "dist": "normal", "seed": 902, "scale": 1 } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 512, 512, 16], "dist": "empty" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }] }
},
{
"name": "generic_rank5_cubic_64tap_unroll_stress",
"preset": "stress",
"attrs": { "mode": "cubic", "coordinate_transformation_mode": "half_pixel", "cubic_coeff_a": -0.75 },
"inputs": { "x": { "dtype": "float32", "shape": [1, 1, 32, 32, 32], "dist": "normal", "seed": 903, "scale": 1 } },
"outputs": { "y": { "dtype": "float32", "shape": [1, 1, 64, 64, 64], "dist": "empty" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.x) + numel(shapes.y)) * 4" }] }
}
]
}
|