Skip to main content

MaxPool3d

MaxPool3d(kernel_size, stride=None, padding=(0, 0, 0), dilation=(1, 1, 1), ceil_mode=False)

Max pooling over a 3-D window; the input is channels-last [N, D1..D3, C].

The module form of clika_runtime.nn.functional.max_pool3d: construct it once with the settings, then call it like a function.

Args: kernel_size: the window extent per spatial dimension. stride: the window step per spatial dimension; empty takes kernel_size; None takes the function's own default. padding: the implicit padding per spatial dimension; padded positions never win. dilation: the element spacing inside the window. ceil_mode: rounds the output extents up instead of down.

__init__​

__init__(self, kernel_size: 'int | Sequence[int]', stride: 'int | Sequence[int] | None' = None, padding: 'int | Sequence[int]' = (0, 0, 0), dilation: 'int | Sequence[int]' = (1, 1, 1), ceil_mode: 'bool' = False) -> 'None'

Initialize self. See help(type(self)) for accurate signature.

extra_repr​

extra_repr(self) -> 'str'

extra_repr() -> str

One line of per-class detail for :meth:__repr__; a layer prints its geometry here (in_features=64, out_features=256).

forward​

forward(self, input: 'Tensor') -> 'Tensor'

forward(input) -> Tensor

Runs clika_runtime.nn.functional.max_pool3d on input with the stored settings; returns a new tensor.