Formula
Boxcar Attention Kernel
The boxcar kernel is an attention pooling kernel defined by the formula . It acts as an indicator function, indiscriminately attending only to observations within a distance of 1 (or another defined hyperparameter) and assigning a weight of zero to all other observations.
0
1
Updated 2026-06-30
Tags
D2L
Dive into Deep Learning @ D2L