Skip to main content

//clika-runtime/io.clika.runtime/Ops/normalizeInPlace

normalizeInPlace

[common]
fun normalizeInPlace(self: Tensor, p: Double = 2.0, dim: Long = 1, eps: Double? = null): Tensor

normalizeInPlace(self: Tensor, p: Double = 2.0, dim: Long = 1L, eps: Double? = null): the normalize_ operator. In-place normalize: rewrites self with its L_p-normalized value and returns it 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.