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

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

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

# logit

[common]\
fun [logit](logit.md)(input: [Tensor](../Tensor/index.md), eps: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null): [Tensor](../Tensor/index.md)

`logit(input: Tensor, eps: Double? = null)`: the `logit` operator. Elementwise log-odds. With `eps` set, the input is first clipped to `[eps, 1 - eps]`; absent means no clipping, so inputs outside `(0, 1)` produce NaN / ±inf per IEEE semantics.