ClikaRT::nn::Sub
class
Header: ClikaRT/nn/generated/elementwise.h
Inherits: ClikaRT::nn::Module
Subtracts other, scaled by alpha, from input elementwise with broadcasting: input - alpha * other, then the optional fused activation. The module form of ClikaRT::ops::sub, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.
Member functions
Sub()
explicit Sub(SubOptions options = {})
Constructs the module from options (every default when omitted).
Declared in ClikaRT/nn/generated/elementwise.h, line 118
forward()
Tensor forward(Tensor input, ScalarOrTensor other) const
forward_impl, unwrapped: raises ClikaRT::Error on failure.
Declared in ClikaRT/nn/generated/elementwise.h, line 132
operator()()
Tensor operator()(Tensor input, ScalarOrTensor other) const
Same as forward.
Declared in ClikaRT/nn/generated/elementwise.h, line 136
options()
const SubOptions& options() const
The settings this module was constructed with.
Declared in ClikaRT/nn/generated/elementwise.h, line 140