Skip to main content

ClikaRT::nn::MaxPool1d

class

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

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

Member functions​

MaxPool1d(MaxPool1dOptions)​

explicit MaxPool1d(MaxPool1dOptions options)

Constructs the module from options.

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

MaxPool1d(vector<int64_t>)​

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

MaxPool1d(kernel_size): the positional form of MaxPool1dOptions(kernel_size).

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

forward()​

Tensor forward(Tensor input) const

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

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

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

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

options()​

const MaxPool1dOptions& options() const

The settings this module was constructed with.

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