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

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

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

# leakyReluInPlace

[common]\
fun [leakyReluInPlace](leakyReluInPlace.md)(self: [Tensor](../Tensor/index.md), negativeSlope: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 0.01): [Tensor](../Tensor/index.md)

`leakyReluInPlace(self: Tensor, negativeSlope: Double = 0.01)`: the `leaky_relu_` operator. In-place `leaky_relu`: writes the result through `self`; same formula, arguments, and error conditions as `leaky_relu()`. 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.