Expand description
Other activations that don’t fit the other modules.
Structs§
- Leaky
Relu - Leaky ReLU activation layer:
xforx >= 0,negative_slope * xotherwise. - Softplus
- Softplus activation layer: a smooth ReLU approximation,
(1/beta) * ln(1 + e^(beta*x)), reverting to linear abovethresholdfor numerical stability. - Softshrink
- Softshrink activation layer: shrinks values toward zero by
lambda. - Softsign
- Softsign activation layer:
x / (1 + |x|). - Threshold
- Threshold activation layer: passes
xthrough ifx > threshold, else outputsvalue.