Skip to content

Commit 1f7bc95

Browse files
midfieldtensorflower-gardener
authored andcommitted
make_backoff_choleksy -> make_backoff_cholesky.
PiperOrigin-RevId: 385349678
1 parent fea149f commit 1f7bc95

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tensorflow_probability/python/experimental/distributions/marginal_fns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from tensorflow_probability.python.distributions import mvn_linear_operator
2323

2424

25-
def make_backoff_choleksy(alternate_cholesky, name='BackoffCholesky'):
25+
def make_backoff_cholesky(alternate_cholesky, name='BackoffCholesky'):
2626
"""Make a function that tries Cholesky then the user-specified function.
2727
2828
Warning: This function uses an XLA-compiled `tf.linalg.cholesky` to capture
@@ -64,7 +64,7 @@ def make_cholesky_like_marginal_fn(cholesky_like,
6464
"""Use a Cholesky-like function for `GaussianProcess` `marginal_fn`.
6565
6666
For use with "Cholesky-like" lower-triangular factorizations (LL^T). See
67-
`make_backoff_choleksy` for one way to create such functions.
67+
`make_backoff_cholesky` for one way to create such functions.
6868
6969
Args:
7070
cholesky_like: A callable with the same signature as `tf.linalg.cholesky.`

tensorflow_probability/python/experimental/distributions/marginal_fns_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ class MarginalFnsTest(test_util.TestCase):
3333

3434
def testNoBackoff(self):
3535
matrix = np.array([[2., 1.], [1., 2.]])
36-
backoff = marginal_fns.make_backoff_choleksy(lambda x: x)
36+
backoff = marginal_fns.make_backoff_cholesky(lambda x: x)
3737
test, ans = self.evaluate((backoff(matrix), tf.linalg.cholesky(matrix)))
3838
self.assertAllClose(test, ans)
3939

4040
def testBackoff(self):
4141
matrix = np.array([[1., 2.], [2., 1.]])
42-
backoff = marginal_fns.make_backoff_choleksy(tf.convert_to_tensor)
42+
backoff = marginal_fns.make_backoff_cholesky(tf.convert_to_tensor)
4343
test = self.evaluate(backoff(matrix))
4444
self.assertAllClose(test, matrix)
4545

0 commit comments

Comments
 (0)