# helia_edge.layers.activations

## Activation Layers API

**Functions**

| Name | Description |
| --- | --- |
| `glu` | Gated linear unit layer |
| `relu` | ReLU activation layer |
| `swish` | Swish activation layer |
| `relu6` | Hard ReLU activation layer |
| `mish` | Mish activation layer |
| `gelu` | GeLU activation layer |
| `sigmoid` | Sigmoid activation layer |
| `hard_sigmoid` | Hard sigmoid activation layer |

Please check [Keras Activations](https://keras.io/api/layers/activations/) for additional activations.

## helia_edge.layers.activations.glu

`function` · `python`

```python
glu(dim: int = -1, hard: bool = False, name: str | None = None) -> keras.Layer
```

Gated linear unit layer

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| dim | int | -1 | Dimension to split. Defaults to -1. |
| hard | bool | False | Use hard sigmoid. Defaults to False. |
| name | str \| None | None | Layer name. Defaults to None. |

**Returns**

| Name | Type | Description |
| --- | --- | --- |
|  | keras.Layer | keras.Layer: Functional GLU layer |

Source: `helia_edge/layers/activations.py:20`

## helia_edge.layers.activations.relu

`function` · `python`

```python
relu(name: str | None = None, truncated: bool = False, **kwargs={}) -> keras.Layer
```

ReLU activation layer w/ optional truncation to ReLU6

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| name | str \| None | None | Layer name. Defaults to None. |
| truncated | bool | False | Truncate to ReLU6. Defaults to False. |

**Returns**

| Name | Type | Description |
| --- | --- | --- |
|  | keras.Layer | keras.Layer: Functional ReLU layer |

Source: `helia_edge/layers/activations.py:44`

## helia_edge.layers.activations.swish

`function` · `python`

```python
swish(name: str | None = None, hard: bool = False, **kwargs={}) -> keras.Layer
```

Swish activation layer w/ optional hard variant

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| name | str \| None | None | Layer name. Defaults to None. |
| hard | bool | False | Use hard swish. Defaults to False. |

**Returns**

| Name | Type | Description |
| --- | --- | --- |
|  | keras.Layer | keras.Layer: Functional Swish layer |

Source: `helia_edge/layers/activations.py:60`

## helia_edge.layers.activations.relu6

`function` · `python`

```python
relu6(name: str | None = None, **kwargs={}) -> keras.Layer
```

Hard ReLU activation layer

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| name | str \| None | None | Layer name. Defaults to None. |

**Returns**

| Name | Type | Description |
| --- | --- | --- |
|  | keras.Layer | keras.Layer: Functional ReLU6 layer |

Source: `helia_edge/layers/activations.py:75`

## helia_edge.layers.activations.mish

`function` · `python`

```python
mish(name: str | None = None, **kwargs={}) -> keras.Layer
```

Mish activation layer

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| name | str \| None | None | Layer name. Defaults to None. |

**Returns**

| Name | Type | Description |
| --- | --- | --- |
|  | keras.Layer | keras.Layer: Functional Mish layer |

Source: `helia_edge/layers/activations.py:88`

## helia_edge.layers.activations.gelu

`function` · `python`

```python
gelu(name: str | None = None, **kwargs={}) -> keras.Layer
```

GeLU activation layer

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| name | str \| None | None | Layer name. Defaults to None. |

**Returns**

| Name | Type | Description |
| --- | --- | --- |
|  | keras.Layer | keras.Layer: Functional GeLU layer |

Source: `helia_edge/layers/activations.py:101`

## helia_edge.layers.activations.sigmoid

`function` · `python`

```python
sigmoid(name: str | None = None, hard: bool = False, **kwargs={}) -> keras.Layer
```

Sigmoid activation layer

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| name | str \| None | None | Layer name. Defaults to None. |
| hard | bool | False | Use hard sigmoid. Defaults to False. |

**Returns**

| Name | Type | Description |
| --- | --- | --- |
|  | keras.Layer | keras.Layer: Functional Sigmoid layer |

Source: `helia_edge/layers/activations.py:114`

## helia_edge.layers.activations.hard_sigmoid

`function` · `python`

```python
hard_sigmoid(name: str | None = None, **kwargs={}) -> keras.Layer
```

Hard sigmoid activation layer

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| name | str \| None | None | Layer name. Defaults to None. |

**Returns**

| Name | Type | Description |
| --- | --- | --- |
|  | keras.Layer | keras.Layer: Functional Hard sigmoid layer |

Source: `helia_edge/layers/activations.py:129`
