File size: 4,493 Bytes
31ec3cf | 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 | {
"op": "ai.onnx.ReduceLogSum",
"cases": [
{
"name": "1024x1024_axis1",
"attrs": { "axes": [1], "keepdims": 0 },
"inputs": { "x": { "dtype": "float32", "shape": [1024, 1024], "data": { "kind": "constant", "value": 0.5 } } },
"outputs": { "y": { "dtype": "float32", "shape": [1024] } }
},
{
"name": "reducelogsum-axis0-f32-1024x512",
"preset": "smoke",
"vars": { "rows": 1024, "cols": 512 },
"attrs": { "axes": [0], "keepdims": 0 },
"inputs": {
"x": { "shape": [1024, 512], "dtype": "float32", "dist": "normal", "seed": 118, "scale": 0.2, "offset": 1 }
},
"outputs": { "y": { "shape": [512], "dtype": "float32" } },
"bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] }
},
{
"name": "reducelogsum-lastaxis-f32-4096x4096",
"preset": "smoke",
"vars": { "rows": 4096, "cols": 4096 },
"attrs": { "axes": [1], "keepdims": 0 },
"inputs": { "x": { "shape": [4096, 4096], "dtype": "float32", "dist": "normal", "seed": 117, "scale": 0.2 } },
"outputs": { "y": { "shape": [4096], "dtype": "float32" } },
"bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] }
},
{
"name": "reducelogsum-fullreduce-r3-256x256x256-keepdims",
"preset": "smoke",
"vars": { "rows": 65536, "cols": 256 },
"attrs": { "keepdims": 1 },
"inputs": {
"x": { "shape": [256, 256, 256], "dtype": "float32", "dist": "uniform", "seed": 711, "scale": 2, "offset": 0.1 }
},
"outputs": { "y": { "shape": [1, 1, 1], "dtype": "float32" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] }
},
{
"name": "reducelogsum-fullreduce-serial-numel-not-mul4-r3",
"preset": "stress",
"attrs": { "keepdims": 0 },
"inputs": {
"x": { "shape": [1001, 1001, 1], "dtype": "float32", "dist": "uniform", "seed": 501, "scale": 2, "offset": 0.1 }
},
"outputs": { "y": { "shape": [], "dtype": "float32" } },
"bench": { "metrics": [{ "type": "bandwidth", "value": "1001 * 1001 * 1 * 4" }] }
},
{
"name": "reducelogsum-rank3-spatial-axes12-f32-128x256x256-pathology",
"preset": "stress",
"provenance": {
"source": "authored for branch coverage",
"notes": "Rank-3 multi-axis reduction with 128 output lanes, each serially scanning a 256x256 plane. Positive inputs keep the post-reduction logarithm finite."
},
"attrs": { "axes": [1, 2], "keepdims": 1 },
"inputs": {
"x": {
"shape": [128, 256, 256],
"dtype": "float32",
"dist": "uniform",
"seed": 305,
"scale": 1,
"offset": 0.01
}
},
"outputs": { "y": { "shape": [128, 1, 1], "dtype": "float32", "dist": "empty" } },
"bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "128 * 256 * 256 * 4" }] }
},
{
"name": "reducelogsum-spatial-axes23-f32-2x64x256x256-pathology",
"preset": "stress",
"provenance": {
"source": "authored for branch coverage",
"notes": "Rank-4 multi-axis reduction with 128 output lanes, each serially scanning a 256x256 plane. Positive inputs keep the post-reduction logarithm finite."
},
"attrs": { "axes": [2, 3], "keepdims": 1 },
"inputs": {
"x": {
"shape": [2, 64, 256, 256],
"dtype": "float32",
"dist": "uniform",
"seed": 304,
"scale": 1,
"offset": 0.01
}
},
"outputs": { "y": { "shape": [2, 64, 1, 1], "dtype": "float32", "dist": "empty" } },
"bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "2 * 64 * 256 * 256 * 4" }] }
},
{
"name": "reducelogsum-axis0-f32-131072x15-narrow-splitk-boundary",
"preset": "stress",
"vars": { "rows": 131072, "cols": 15 },
"attrs": { "axes": [0], "keepdims": 0 },
"inputs": {
"x": { "shape": [131072, 15], "dtype": "float32", "dist": "uniform", "seed": 502, "scale": 0.1, "offset": 1 }
},
"outputs": { "y": { "shape": [15], "dtype": "float32", "dist": "empty" } },
"bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] }
}
],
"tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] }
}
|