Skip to main content

ClikaRT::ops::masked_fill_

function

masked_fill_()

Tensor& masked_fill_(
    Tensor& self,
    Tensor mask,
    ScalarOrTensor value
)

In-place masked_fill: writes value through self where mask is true; same arguments and error conditions as masked_fill(). 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 2501