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

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

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

# sgn

[common]\
fun [sgn](sgn.md)(input: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`sgn(input: Tensor)`: the `sgn` operator. Elementwise sign; identical to `sign` for real dtypes. Value-domain violations follow IEEE semantics (NaN / ±inf in the result), never an error.