Skip to main content

ClikaRT::ops::hardtanh_

function

hardtanh_()

Tensor& hardtanh_(
    Tensor& self,
    double min_val = -1.0,
    double max_val = 1.0
)

In-place hardtanh: writes the result through self; same formula, arguments, and error conditions as hardtanh(). A view input writes through its base storage. Returns self under the value surface, Result<void> under the Result surface; CLIKART_CHECK is the mode-stable spelling.

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