Skip to main content

//clika-runtime/io.clika.runtime/Ops/geluInPlace

geluInPlace

[common]
fun geluInPlace(self: Tensor, approximate: GeluMode = GeluMode.NONE): Tensor

geluInPlace(self: Tensor, approximate: GeluMode = GeluMode.NONE): the gelu_ operator. In-place gelu: writes the result through self; same formula, arguments, and error conditions as gelu(). 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.