Skip to content

Commit e656867

Browse files
srvasudetensorflower-gardener
authored andcommitted
Remove deprecated lims argument to ContinuousBernoulli.
PiperOrigin-RevId: 386286763
1 parent 33cc12b commit e656867

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tensorflow_probability/python/distributions/continuous_bernoulli.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from tensorflow_probability.python.internal import reparameterization
3333
from tensorflow_probability.python.internal import samplers
3434
from tensorflow_probability.python.internal import tensor_util
35-
from tensorflow.python.util import deprecation # pylint: disable=g-direct-tensorflow-import
3635

3736

3837
def _log_xexp_ratio(x):
@@ -118,14 +117,10 @@ class ContinuousBernoulli(distribution.AutoCompositeTensorDistribution):
118117
https://arxiv.org/abs/1907.06845
119118
"""
120119

121-
@deprecation.deprecated_args(
122-
'2021-03-09', 'The `lims` argument is deprecated.'
123-
' ContinuousBernoulli ignores this parameter.', 'lims')
124120
def __init__(
125121
self,
126122
logits=None,
127123
probs=None,
128-
lims=(0.499, 0.501),
129124
dtype=tf.float32,
130125
validate_args=False,
131126
allow_nan_stats=True,
@@ -143,7 +138,6 @@ def __init__(
143138
continuous Bernoulli distribution. Only one of `logits` or `probs`
144139
should be passed in. Note that this also does not correspond to a
145140
probability as in the Bernoulli case.
146-
lims: Deprecated. Is not needed for numerical stability anymore.
147141
dtype: The type of the event samples. Default: `float32`.
148142
validate_args: Python `bool`, default `False`. When `True`
149143
distribution parameters are checked for validity despite possibly

0 commit comments

Comments
 (0)