Skip to main content

ClikaRT::ops::normalize_

function

normalize_()

Tensor& normalize_(
    Tensor& self,
    Scalar p = 2.0,
    int64_t dim = 1,
    std::optional<double> eps = std::nullopt
)

In-place normalize: rewrites self with its L_p-normalized value and returns it under the value surface, Result<void> under the Result surface; CLIKART_CHECK is the mode-stable spelling.

Throws

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