Skip to main content

//clika-runtime/io.clika.runtime/Ops/zeroInPlace

zeroInPlace

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

zeroInPlace(self: Tensor, device: Placement? = null): the zero_ operator. In-place zero fill: overwrites every element of self with zero (the error conditions of zeros()). 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.