| { |
| "op": "ai.onnx.AveragePool", |
| "tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] }, |
| "cases": [ |
| { |
| "name": "average-pool-f32-b1c32-64x64-k2s2", |
| "preset": "smoke", |
| "vars": { "batch": 1, "channels": 32, "inH": 64, "inW": 64 }, |
| "attrs": { "kernel_shape": [2, 2], "strides": [2, 2], "pads": [0, 0, 0, 0] }, |
| "inputs": { "x": { "shape": [1, 32, 64, 64], "dtype": "float32", "dist": "normal", "seed": 116, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [1, 32, 32, 32], "dtype": "float32" } }, |
| "bench": { |
| "primary": true, |
| "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 4" }] |
| } |
| }, |
| { |
| "name": "nchw_8x64x112x112_k3s1p1_unrolled", |
| "preset": "smoke", |
| "vars": { "batch": 8, "channels": 64, "inH": 112, "inW": 112 }, |
| "attrs": { "kernel_shape": [3, 3], "strides": [1, 1], "pads": [1, 1, 1, 1] }, |
| "inputs": { "x": { "dtype": "float32", "shape": [8, 64, 112, 112], "dist": "normal", "seed": 205 } }, |
| "outputs": { "y": { "dtype": "float32", "shape": [8, 64, 112, 112], "dist": "empty" } }, |
| "bench": { |
| "primary": true, |
| "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 4 * 2" }] |
| } |
| }, |
| { |
| "name": "nchw_f16_8x64x112x112_k3s1p1_unrolled", |
| "preset": "smoke", |
| "vars": { "batch": 8, "channels": 64, "inH": 112, "inW": 112 }, |
| "attrs": { "kernel_shape": [3, 3], "strides": [1, 1], "pads": [1, 1, 1, 1] }, |
| "inputs": { "x": { "dtype": "float16", "shape": [8, 64, 112, 112], "dist": "normal", "seed": 206 } }, |
| "outputs": { "y": { "dtype": "float16", "shape": [8, 64, 112, 112], "dist": "empty" } }, |
| "bench": { |
| "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 2 * 2" }] |
| } |
| }, |
| { |
| "name": "average-pool-f32-b1c64-224x224-k7s2p3-generic", |
| "preset": "smoke", |
| "vars": { "batch": 1, "channels": 64, "inH": 224, "inW": 224 }, |
| "attrs": { "count_include_pad": 0, "kernel_shape": [7, 7], "strides": [2, 2], "pads": [3, 3, 3, 3] }, |
| "inputs": { "x": { "dtype": "float32", "shape": [1, 64, 224, 224], "dist": "normal", "seed": 311, "scale": 0.2 } }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 64, 112, 112], "dist": "empty" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 4" }] } |
| }, |
| { |
| "name": "average-pool-f16-b1c64-224x224-k7s2p3-generic", |
| "preset": "smoke", |
| "vars": { "batch": 1, "channels": 64, "inH": 224, "inW": 224 }, |
| "attrs": { "count_include_pad": 0, "kernel_shape": [7, 7], "strides": [2, 2], "pads": [3, 3, 3, 3] }, |
| "inputs": { "x": { "dtype": "float16", "shape": [1, 64, 224, 224], "dist": "normal", "seed": 312, "scale": 0.2 } }, |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 64, 112, 112], "dist": "empty" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 2" }] } |
| }, |
| { |
| "name": "average-pool-f32-b8c64-112x114-k3s1p1-unaligned-fallback", |
| "preset": "smoke", |
| "vars": { "batch": 8, "channels": 64, "inH": 112, "inW": 114 }, |
| "attrs": { "count_include_pad": 0, "kernel_shape": [3, 3], "strides": [1, 1], "pads": [1, 1, 1, 1] }, |
| "inputs": { "x": { "dtype": "float32", "shape": [8, 64, 112, 114], "dist": "normal", "seed": 313, "scale": 0.2 } }, |
| "outputs": { "y": { "dtype": "float32", "shape": [8, 64, 112, 114], "dist": "empty" } }, |
| "bench": { |
| "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 4 * 2" }] |
| } |
| }, |
| { |
| "name": "average-pool-f32-ncdhw-b1c32-32x64x64-k2s2-3d", |
| "preset": "smoke", |
| "vars": { "batch": 1, "channels": 32, "inD": 32, "inH": 64, "inW": 64 }, |
| "attrs": { "count_include_pad": 0, "kernel_shape": [2, 2, 2], "strides": [2, 2, 2], "pads": [0, 0, 0, 0, 0, 0] }, |
| "inputs": { |
| "x": { "dtype": "float32", "shape": [1, 32, 32, 64, 64], "dist": "normal", "seed": 314, "scale": 0.2 } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 32, 16, 32, 32], "dist": "empty" } }, |
| "bench": { |
| "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inD * args.inH * args.inW * 4" }] |
| } |
| }, |
| { |
| "name": "average-pool-f32-ncl-b8c256-1024-k3s2-1d", |
| "preset": "smoke", |
| "vars": { "batch": 8, "channels": 256, "inW": 1024 }, |
| "attrs": { "count_include_pad": 0, "kernel_shape": [3], "strides": [2], "pads": [0, 0] }, |
| "inputs": { "x": { "dtype": "float32", "shape": [8, 256, 1024], "dist": "normal", "seed": 315, "scale": 0.2 } }, |
| "outputs": { "y": { "dtype": "float32", "shape": [8, 256, 511], "dist": "empty" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inW * 4" }] } |
| }, |
| { |
| "name": "global_avg_pool_bigkernel_tiny_output_launch_starved_stress", |
| "preset": "stress", |
| "vars": { "batch": 1, "channels": 512, "inH": 64, "inW": 64 }, |
| "attrs": { "count_include_pad": 0, "kernel_shape": [64, 64], "strides": [1, 1], "pads": [0, 0, 0, 0] }, |
| "inputs": { "x": { "dtype": "float32", "shape": [1, 512, 64, 64], "dist": "normal", "seed": 4101, "scale": 0.2 } }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 512, 1, 1], "dist": "empty" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 4" }] } |
| }, |
| { |
| "name": "global-avg-pool-f32-b2c256-96x96-segmentation-head", |
| "preset": "stress", |
| "vars": { "batch": 2, "channels": 256, "inH": 96, "inW": 96 }, |
| "attrs": { "count_include_pad": 0, "kernel_shape": [96, 96], "strides": [1, 1], "pads": [0, 0, 0, 0] }, |
| "inputs": { "x": { "dtype": "float32", "shape": [2, 256, 96, 96], "dist": "normal", "seed": 4103, "scale": 0.2 } }, |
| "outputs": { "y": { "dtype": "float32", "shape": [2, 256, 1, 1], "dist": "empty" } }, |
| "bench": { |
| "primary": true, |
| "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 4" }] |
| } |
| }, |
| { |
| "name": "nchw2d_generic_k7s1_overlap_reread_large_map_stress", |
| "preset": "stress", |
| "vars": { "batch": 4, "channels": 64, "inH": 128, "inW": 128 }, |
| "attrs": { "count_include_pad": 0, "kernel_shape": [7, 7], "strides": [1, 1], "pads": [3, 3, 3, 3] }, |
| "inputs": { |
| "x": { "dtype": "float32", "shape": [4, 64, 128, 128], "dist": "normal", "seed": 4102, "scale": 0.2 } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [4, 64, 128, 128], "dist": "empty" } }, |
| "bench": { |
| "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 4 * 2" }] |
| } |
| }, |
| { |
| "name": "average-pool-k7s1p3-f32-b2c128-96x96-segmentation-context", |
| "preset": "stress", |
| "vars": { "batch": 2, "channels": 128, "inH": 96, "inW": 96 }, |
| "attrs": { "count_include_pad": 0, "kernel_shape": [7, 7], "strides": [1, 1], "pads": [3, 3, 3, 3] }, |
| "inputs": { "x": { "dtype": "float32", "shape": [2, 128, 96, 96], "dist": "normal", "seed": 4104, "scale": 0.2 } }, |
| "outputs": { "y": { "dtype": "float32", "shape": [2, 128, 96, 96], "dist": "empty" } }, |
| "bench": { |
| "primary": true, |
| "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 4 * 2" }] |
| } |
| }, |
| { |
| "name": "average-pool-k7s1p3-f32-b1c64-112x113-odd-width-cliff", |
| "preset": "stress", |
| "vars": { "batch": 1, "channels": 64, "inH": 112, "inW": 113 }, |
| "attrs": { "count_include_pad": 0, "kernel_shape": [7, 7], "strides": [1, 1], "pads": [3, 3, 3, 3] }, |
| "inputs": { |
| "x": { "dtype": "float32", "shape": [1, 64, 112, 113], "dist": "normal", "seed": 4105, "scale": 0.2 } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 64, 112, 113], "dist": "empty" } }, |
| "bench": { |
| "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inH * args.inW * 4 * 2" }] |
| } |
| }, |
| { |
| "name": "global-averagepool-rank5-serial-reduction-pathology", |
| "preset": "stress", |
| "provenance": { |
| "source": "authored for variant coverage", |
| "notes": "Rank-5 global pooling over 131072 spatial values per plane verifies global_window_parallel coverage and its feature-tier fallbacks." |
| }, |
| "vars": { "batch": 1, "channels": 32, "inD": 32, "inH": 64, "inW": 64 }, |
| "attrs": { |
| "count_include_pad": 0, |
| "kernel_shape": [32, 64, 64], |
| "strides": [1, 1, 1], |
| "pads": [0, 0, 0, 0, 0, 0] |
| }, |
| "inputs": { |
| "x": { "dtype": "float32", "shape": [1, 32, 32, 64, 64], "dist": "normal", "seed": 5101, "scale": 0.2 } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 32, 1, 1, 1], "dist": "empty" } }, |
| "bench": { |
| "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.inD * args.inH * args.inW * 4" }] |
| } |
| } |
| ] |
| } |
|
|