Skip to main content

ClikaRT::nn::ZeroPad

class

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

Pads with zeros. The module form of ClikaRT::ops::constant_pad with value fixed to 0.0, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

ZeroPad(ZeroPadOptions)​

explicit ZeroPad(ZeroPadOptions options)

Constructs the module from options.

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

ZeroPad(vector<ScalarOrTensor>)​

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

ZeroPad(padding): the positional form of ZeroPadOptions(padding).

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

forward()​

Tensor forward(Tensor input) const

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

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

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

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

options()​

const ZeroPadOptions& options() const

The settings this module was constructed with.

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