---
title: "ClikaRT::ops::selu"
sidebar_label: "selu"
description: "Scaled exponential linear unit: elu with the fixed SELU constants (alpha ~= 1.6733, scale ~= 1.0507) from the self-normalizing-networks formulation."
---

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

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

## selu() {#selu}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`selu`**([`Tensor`](../Tensor.md) `input`)

</div>

Scaled exponential linear unit: [`elu`](./elu.md#elu) with the fixed SELU constants (alpha \~= 1.6733, scale \~= 1.0507) from the self-normalizing-networks formulation.

**Throws**

- `ClikaRT::Error`: when the input's dtype is not served for this operation (the machine-readable reason rides `code_name()`).

**Returns:** a new tensor, same shape and dtype as `input`.

```cpp
auto y = ClikaRT::ops::selu(x);
```

<div class="api-declared">

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

</div>
