Skip to content

Commit 0759c57

Browse files
authored
Merge pull request #1660 from emilyfertig/r0.19
Add deprecation notice to `log_cumsum_exp`.
2 parents ca88e1d + 80e6f25 commit 0759c57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tensorflow_probability/python/math/generic.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from tensorflow_probability.python.internal import tensorshape_util
3131
from tensorflow_probability.python.internal import variadic_reduce
3232
from tensorflow_probability.python.math.scan_associative import scan_associative
33+
from tensorflow.python.util import deprecation # pylint: disable=g-direct-tensorflow-import
3334

3435

3536
__all__ = [
@@ -89,6 +90,9 @@ def log_combinations(n, counts, name='log_combinations'):
8990

9091
# TODO(b/154562929): Remove this once the built-in op supports XLA.
9192
# TODO(b/156297366): Derivatives of this function may not always be correct.
93+
@deprecation.deprecated('2023-03-01',
94+
'`log_cumsum_exp` is deprecated; '
95+
' Use `tf.math.cumulative_logsumexp` instead.')
9296
def log_cumsum_exp(x, axis=-1, name=None):
9397
"""Computes log(cumsum(exp(x))).
9498

0 commit comments

Comments
 (0)