ClikaRT::nn::ConstantPad
class
Header: ClikaRT/nn/generated/padding.h
Inherits: ClikaRT::nn::Module
Pads with a constant value. The module form of ClikaRT::ops::constant_pad, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.
Member functions
ConstantPad(ConstantPadOptions)
explicit ConstantPad(ConstantPadOptions options)
Constructs the module from options.
Declared in ClikaRT/nn/generated/padding.h, line 72
ConstantPad(vector<ScalarOrTensor>, optional<ScalarOrTensor>)
explicit ConstantPad(
std::vector<ScalarOrTensor> padding,
std::optional<ScalarOrTensor> value = std::nullopt
)
ConstantPad(padding, value): the positional form of ConstantPadOptions(padding, value).
Declared in ClikaRT/nn/generated/padding.h, line 75
forward()
forward_impl, unwrapped: raises ClikaRT::Error on failure.
Declared in ClikaRT/nn/generated/padding.h, line 89
operator()()
Same as forward.
Declared in ClikaRT/nn/generated/padding.h, line 93
options()
const ConstantPadOptions& options() const
The settings this module was constructed with.
Declared in ClikaRT/nn/generated/padding.h, line 97