Skip to main content

ClikaRT::nn::AdaptiveAvgPool2d

class

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

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

Member functions​

AdaptiveAvgPool2d(AdaptiveAvgPool2dOptions)​

explicit AdaptiveAvgPool2d(AdaptiveAvgPool2dOptions options)

Constructs the module from options.

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

AdaptiveAvgPool2d(vector<int64_t>)​

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

AdaptiveAvgPool2d(output_size): the positional form of AdaptiveAvgPool2dOptions(output_size).

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

forward()​

Tensor forward(Tensor input) const

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

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

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

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

options()​

const AdaptiveAvgPool2dOptions& options() const

The settings this module was constructed with.

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