---
title: "sgnInPlace"
sidebar_label: "sgnInPlace"
description: "Kotlin binding reference: sgnInPlace."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[sgnInPlace](sgnInPlace.md)

# sgnInPlace

[common]\
fun [sgnInPlace](sgnInPlace.md)(self: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`sgnInPlace(self: Tensor)`: the `sgn_` operator. In-place `sgn`: writes the result through `self`; same formula, arguments, and error conditions as `sgn()`. 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.