Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions flax/linen/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
class PReLU(Module):
"""Parametric Rectified Linear Unit (PReLU) activation function.

Note that PReLU is a Flax layer and not a simple activation function, so
it needs to be initialized before being called.

Example usage::
x = nn.PReLU()(x)

Attributes:
param_dtype: the dtype passed to parameter initializers (default: float32).
negative_slope_init: the value to initialize the negative slope
Expand Down