glu
PythonGated linear unit layer
glu(dim: int = -1, hard: bool = False, name: str | None = None) -> keras.LayerGated 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
| Type | Description |
|---|---|
keras.Layer | keras.Layer: Functional GLU layer |