---
title: "ClikaRT::ops::prelu_"
sidebar_label: "prelu_"
description: "In-place prelu: writes the result through self; same formula, arguments, and error conditions as prelu(). 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>

## prelu\_() {#prelu_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`prelu_`**([`Tensor`](../Tensor.md)`&` `self`, [`OptionalTensor`](../../index.md#OptionalTensor) `weight` `=` `{}`)

</div>

In-place [`prelu`](./prelu.md#prelu): writes the result through `self`; same formula, arguments, and error conditions as [`prelu()`](./prelu.md#prelu). 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 965

</div>
