shifted_softplus#

bayesflow.utils.keras_utils.shifted_softplus(x: Tensor, shift: float = np.float64(0.541324854612918)) Tensor[source]#

Shifted version of the softplus function such that shifted_softplus(0) = 1