Skip to main content

//clika-runtime/io.clika.runtime/Ops/clampMaxInPlace

clampMaxInPlace

[common]
fun clampMaxInPlace(self: Tensor, max: Tensor): Tensor

clampMaxInPlace(self: Tensor, max: Tensor): the clamp_max_ operator. In-place clamp_max: writes the result through self; same formula, arguments, and error conditions as clamp_max(). 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 clampMaxInPlace(self: Tensor, max: Double): Tensor

clampMaxInPlace(self: Tensor, max: Double): the number form of clamp_max_, max as a scalar.