Skip to main content

ClikaRT::nn::AdaptiveMaxPool1d

class

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

Max pooling to a fixed 1-D output size, the window derived per output position; the input is channels-last. The module form of ClikaRT::ops::adaptive_max_pool1d, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

AdaptiveMaxPool1d(AdaptiveMaxPool1dOptions)​

explicit AdaptiveMaxPool1d(AdaptiveMaxPool1dOptions options)

Constructs the module from options.

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

AdaptiveMaxPool1d(vector<int64_t>)​

explicit AdaptiveMaxPool1d(std::vector<std::int64_t> output_size)

AdaptiveMaxPool1d(output_size): the positional form of AdaptiveMaxPool1dOptions(output_size).

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

forward()​

Tensor forward(Tensor input) const

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

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

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

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

options()​

const AdaptiveMaxPool1dOptions& options() const

The settings this module was constructed with.

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