Skip to main content

ClikaRT::nn::Upsample

class

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

Resamples the spatial dimensions to size or by scale_factor (exactly one given); the input is channels-last and its rank picks the spatial variant. The two settings share one type, so the module is constructed from its options: Upsample(UpsampleOptions().scale_factor({2, 2})). The module form of ClikaRT::ops::interpolate, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

Upsample()​

explicit Upsample(UpsampleOptions options = {})

Constructs the module from options (every default when omitted).

Declared in ClikaRT/nn/generated/upsampling.h, line 109

forward()​

Tensor forward(Tensor input) const

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

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

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

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

options()​

const UpsampleOptions& options() const

The settings this module was constructed with.

Declared in ClikaRT/nn/generated/upsampling.h, line 132