Skip to main content

ClikaRT::ops::nan_to_num_

function

nan_to_num_()

Tensor& nan_to_num_(
    Tensor& self,
    std::optional<double> nan = std::nullopt,
    std::optional<double> posinf = std::nullopt,
    std::optional<double> neginf = std::nullopt
)

In-place nan_to_num: writes the result through self; same formula, arguments, and error conditions as nan_to_num(). 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 5073