Skip to main content

//clika-runtime/io.clika.runtime/Ops/maskedFillInPlace

maskedFillInPlace

[common]
fun maskedFillInPlace(self: Tensor, mask: Tensor, value: Tensor): Tensor

maskedFillInPlace(self: Tensor, mask: Tensor, value: Tensor): the masked_fill_ operator. 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. Writes through self and returns it, so calls chain.

[common]
fun maskedFillInPlace(self: Tensor, mask: Tensor, value: Double): Tensor

maskedFillInPlace(self: Tensor, mask: Tensor, value: Double): the number form of masked_fill_, value as a scalar.