---
title: "ClikaRT::ops::leaky_relu_"
sidebar_label: "leaky_relu_"
description: "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."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## leaky\_relu\_() {#leaky_relu_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`leaky_relu_`**([`Tensor`](../Tensor.md)`&` `self`, `double` `negative_slope` `=` `0.01`)

</div>

In-place [`leaky_relu`](./leaky_relu.md#leaky_relu): writes the result through `self`; same formula, arguments, and error conditions as [`leaky_relu()`](./leaky_relu.md#leaky_relu). A view input writes through its base storage. Returns `self` under the value surface, [`Result`](../Result.md)`<void>` under the [`Result`](../Result.md) surface; [`CLIKART_CHECK`](../../index.md#CLIKART_CHECK) is the mode-stable spelling.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 900

</div>
