Skip to main content

ClikaRT::ops::add_

function

add_()

Tensor& add_(
    Tensor& self,
    ScalarOrTensor other,
    double alpha = 1.0,
    Activation activation = Activation::Identity
)

In-place add: writes act(x+αother)act(x + \alpha \cdot other) through x; semantics as ops::add (which also documents broadcasting/promotion).

Throws

  • ClikaRT::Error: as the value form.

Declared in ClikaRT/compute/ops.h, line 1341