Xenova's picture
Xenova HF Staff
sync 2e7068faf55e
e9fc83c verified
Raw
History Blame
6.42 kB
{
"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" }]
}
}
]
}