Skip to main content

ClikaRT::nn::Unfold

class

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

Extracts sliding windows from a channels-last input [N, D1..Dn, C] into [N, L, prod(kernel_size), C], one row per window placement. The module form of ClikaRT::ops::unfold, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

Unfold(UnfoldOptions)​

explicit Unfold(UnfoldOptions options)

Constructs the module from options.

Declared in ClikaRT/nn/generated/fold.h, line 225

Unfold(vector<int64_t>)​

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

Unfold(kernel_size): the positional form of UnfoldOptions(kernel_size).

Declared in ClikaRT/nn/generated/fold.h, line 228

forward()​

Tensor forward(Tensor input) const

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

Declared in ClikaRT/nn/generated/fold.h, line 243

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

Declared in ClikaRT/nn/generated/fold.h, line 247

options()​

const UnfoldOptions& options() const

The settings this module was constructed with.

Declared in ClikaRT/nn/generated/fold.h, line 251