Home | History | Annotate | Download | only in bijectors

Lines Matching refs:Softplus

15 """Softplus bijector."""
31 "Softplus",
35 class Softplus(bijector.Bijector):
38 The softplus `Bijector` has the following two useful properties:
41 * `softplus(x) approx x`, for large `x`, so it does not overflow as easily as
50 so the behavior for large `x` is the same as the standard softplus.
63 # Create the Y=g(X)=softplus(X) transform which works only on Tensors with 1
65 softplus = Softplus(event_ndims=2)
70 log(1 + exp(x)) == softplus.forward(x)
71 log(exp(x) - 1) == softplus.inverse(x)
87 name="softplus"):
103 super(Softplus, self).__init__(
110 return nn_ops.softplus(x)
112 return hinge_softness * nn_ops.softplus(x / hinge_softness)
139 return -math_ops.reduce_sum(nn_ops.softplus(-x),