Skip to content

Talario\MaxPool2d

Requires a Talario build. Licensed builds are available through sales. There is no public download. Availability

__construct

new MaxPool2d(int $kh, int $kw, ?int $stride = null, int $pad = 0)

Create a pooling layer; null stride means non-overlapping (stride = kh).

__invoke

__invoke(Tape $t, int $x): int

Forward max-pool over the tape.

Using a coding agent?

Copy a prompt for Talario\MaxPool2d, with the API reference.