Skip to main content

ClikaRT::nn::AdaptiveAvgPool1d

class

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

Average 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_avg_pool1d, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

AdaptiveAvgPool1d(AdaptiveAvgPool1dOptions)​

explicit AdaptiveAvgPool1d(AdaptiveAvgPool1dOptions options)

Constructs the module from options.

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

AdaptiveAvgPool1d(vector<int64_t>)​

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

AdaptiveAvgPool1d(output_size): the positional form of AdaptiveAvgPool1dOptions(output_size).

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

forward()​

Tensor forward(Tensor input) const

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

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

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

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

options()​

const AdaptiveAvgPool1dOptions& options() const

The settings this module was constructed with.

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