Skip to main content

ClikaRT::nn::ReflectionPad

class

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

Pads by mirroring about the edge, without repeating the edge sample. The module form of ClikaRT::ops::reflect_pad, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

ReflectionPad(ReflectionPadOptions)​

explicit ReflectionPad(ReflectionPadOptions options)

Constructs the module from options.

Declared in ClikaRT/nn/generated/padding.h, line 134

ReflectionPad(vector<ScalarOrTensor>)​

explicit ReflectionPad(std::vector<ScalarOrTensor> padding)

ReflectionPad(padding): the positional form of ReflectionPadOptions(padding).

Declared in ClikaRT/nn/generated/padding.h, line 137

forward()​

Tensor forward(Tensor input) const

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

Declared in ClikaRT/nn/generated/padding.h, line 149

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

Declared in ClikaRT/nn/generated/padding.h, line 153

options()​

const ReflectionPadOptions& options() const

The settings this module was constructed with.

Declared in ClikaRT/nn/generated/padding.h, line 157