tensordict.nn.biased_softplus¶
- class tensordict.nn.biased_softplus(bias: float, min_val: float = 0.01)¶
A biased softplus module.
The bias indicates the value that is to be returned when a zero-tensor is passed through the transform.
- Parameters:
bias (scalar) – ‘bias’ of the softplus transform. If bias=1.0, then a _bias shift will be computed such that softplus(0.0 + _bias) = bias.
min_val (scalar) – minimum value of the transform. default: 0.1