Skip to main content

ClikaRT::ops::sub_

function

sub_()

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

In-place sub: writes act(xαother)act(x - \alpha \cdot other) through x.

Throws

  • ClikaRT::Error: as the value form.

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