Skip to content
KernelIndex
Search⌘K

Average Pooling 1D

4 eligible runs
pooling

KernelBench level1 problem 44: Average Pooling 1D. The computation is the reference PyTorch module's forward pass; the output shape follows the module (mirrored as each implementation's source).

Fastest reported
2.78ms±0.00 · mean of 100 · 3.81× faster than baseline
torch.compile (inductor)PyTorch · MIT · python

Reported evidence · last observed 2026-03-05. Reported by source; not independently reproduced.

Current records

Source-native comparison · GPU NVIDIA H100 · Workload batch_size = 64 · in_channels = 128 · input_length = 65536 · fp32 · Protocol KernelBench timing scripts · mean · 2 results · last observed 2026-03-05Record history →
Estimated floor 641.0 µs · record 4.34× above itestimate, not evidence ›
DRAM 641.0 µs · bandwidth-bound on H100 SXM
every declared tensor crosses HBM exactly once (3,350 GB/s, H100 SXM datasheet)
no arithmetic formula for this family: bandwidth floor only
headroom-v1: a lower bound from declared tensors and datasheet peaks. A kernel can sit well above it for good reasons.
#
Implementation
Latency
vs #1
Trust
Observed
1
2.78ms±0.00
1.00×
Reported · MIT · source
2026-03-05stale

3.81× faster than the baseline. Measured exactly what you asked. Reported by source; not independently reproduced.

source mirroredMITno install recipeView source →Run detail →
2
PyTorch eagerbaselinePyTorch
10.6ms±0.00
3.81×
Reported · MIT · source
2026-03-05stale

Measured exactly what you asked. The source's designated baseline implementation. Reported by source; not independently reproduced.

source mirroredMITno install recipeView source →Run detail →

Implementations

Implementation
Runtime
Best latency
Evidence
Availability
python · torch_eager
5.47ms
1.97×
Reported
MIT · source
python · torch_compile_inductor
2.78ms
1.00×
Reported
MIT · source

Semantics

Inputs and outputs
xfp32 [batch_size, in_channels, input_length]
outfloat [out]
Axes and behavior
outvariable
batch_sizevariable
in_channelsvariable
input_lengthvariable
determinismunspecified
constraintsNo mutation or aliasing
Identity
sha256eaef3da52d8d…
Sources: KernelBench baseline timings (2026-03-05) · MITlast observed 2026-03-05How records are decidedJSON