Skip to main content

ClikaRT::nn::MaxPool2d

class

Header: ClikaRT/nn/generated/pooling.h
Inherits: ClikaRT::nn::Module

Max pooling over a 2-D window; the input is channels-last [N, D1..D2, C]. The module form of ClikaRT::ops::max_pool2d, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

MaxPool2d(MaxPool2dOptions)​

explicit MaxPool2d(MaxPool2dOptions options)

Constructs the module from options.

Declared in ClikaRT/nn/generated/pooling.h, line 206

MaxPool2d(vector<int64_t>)​

explicit MaxPool2d(std::vector<std::int64_t> kernel_size)

MaxPool2d(kernel_size): the positional form of MaxPool2dOptions(kernel_size).

Declared in ClikaRT/nn/generated/pooling.h, line 209

forward()​

Tensor forward(Tensor input) const

forward_impl, unwrapped: raises ClikaRT::Error on failure.

Declared in ClikaRT/nn/generated/pooling.h, line 223

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

Declared in ClikaRT/nn/generated/pooling.h, line 227

options()​

const MaxPool2dOptions& options() const

The settings this module was constructed with.

Declared in ClikaRT/nn/generated/pooling.h, line 231