Formula

Boxcar Attention Kernel

The boxcar kernel is an attention pooling kernel defined by the formula α(x)=x<1.0\alpha(x) = |x| < 1.0. It acts as an indicator function, indiscriminately attending only to observations within a distance of 11 (or another defined hyperparameter) and assigning a weight of zero to all other observations.

0

1

Updated 2026-05-14

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L