from tensorflow.python.ops import nn

  def __init__(self,
               alpha,
               beta,
               validate_args=False,
               allow_nan_stats=True,
               name="InverseGammaWithSoftplusAlphaBeta"):
    parameters = locals()
    parameters.pop("self")
    with ops.name_scope(name, values=[alpha, beta]) as ns:
      super(InverseGammaWithSoftplusAlphaBeta, self).__init__(
          alpha=nn.softplus(alpha, name="softplus_alpha"),
          beta=nn.softplus(beta, name="softplus_gamma"),
          validate_args=validate_args,
          allow_nan_stats=allow_nan_stats,
          name=ns)
    self._parameters = parameters
