Skip to main content

//clika-runtime/io.clika.runtime/Ops/fillInPlace

fillInPlace

[common]
fun fillInPlace(self: Tensor, value: Tensor, device: Placement? = null): Tensor

fillInPlace(self: Tensor, value: Tensor, device: Placement? = null): the fill_ operator. In-place fill: overwrites every element of self with value; same arguments and error conditions as 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 fillInPlace(self: Tensor, value: Double, device: Placement? = null): Tensor

fillInPlace(self: Tensor, value: Double, device: Placement? = null): the number form of fill_, value as a scalar.