Padded Two-Dimensional Pooling #
These definitions expose the conventional two-dimensional, channel-first API for symmetric
padding. The numerical semantics come from NN.Spec.Layers.Pooling.ND: max pooling ignores
padded cells, while average pooling includes padded zeros in the divisor. This file contains only
dependent-shape adapters and therefore cannot drift from the N-dimensional implementation.
Channel-first two-dimensional max pooling with symmetric padding.
Instances For
Selected-branch JVP for padded channel-first two-dimensional max pooling.
Instances For
Channel-first average pooling with symmetric zero padding and count_include_pad = true.
Instances For
VJP for padded channel-first two-dimensional max pooling.
Instances For
VJP for padded channel-first average pooling with count_include_pad = true.
Instances For
Smooth max VJPs #
VJP for unpadded single-channel smooth max pooling.
Instances For
VJP for unpadded channel-first smooth max pooling.