Skip to main content

//clika-runtime/io.clika.runtime/Ops/thresholdInPlace

thresholdInPlace

[common]
fun thresholdInPlace(self: Tensor, threshold: Double, value: Double): Tensor

thresholdInPlace(self: Tensor, threshold: Double, value: Double): the threshold_ operator. In-place threshold: writes the result through self; same formula, arguments, and error conditions as threshold(). 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.