Skip to main content

ClikaRT::nn::Add

class

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

Adds other, scaled by alpha, to input elementwise with broadcasting: input + alpha * other, then the optional fused activation. The module form of ClikaRT::ops::add, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

Add()​

explicit Add(AddOptions options = {})

Constructs the module from options (every default when omitted).

Declared in ClikaRT/nn/generated/elementwise.h, line 60

forward()​

Tensor forward(Tensor input, ScalarOrTensor other) const

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

Declared in ClikaRT/nn/generated/elementwise.h, line 74

operator()()​

Tensor operator()(Tensor input, ScalarOrTensor other) const

Same as forward.

Declared in ClikaRT/nn/generated/elementwise.h, line 78

options()​

const AddOptions& options() const

The settings this module was constructed with.

Declared in ClikaRT/nn/generated/elementwise.h, line 82