Skip to content

Commit 789a026

Browse files
Fix indentation
1 parent 6f39638 commit 789a026

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tensorflow_probability/python/math/special.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ def continued_fraction_evaluation(should_stop, iteration, values, gradients):
215215
# We run two steps of modified Lentz's method per iteration.
216216
# First step of the iteration: the even one.
217217
new_values, new_gradients, _ = continued_fraction_step(
218-
iteration, values, gradients, _betainc_even_partial_numerator)
218+
iteration, values, gradients, _betainc_even_partial_numerator)
219219

220220
# Second step of the iteration: the odd one.
221221
new_values, new_gradients, delta = continued_fraction_step(
222-
iteration, new_values, new_gradients, _betainc_odd_partial_numerator)
222+
iteration, new_values, new_gradients, _betainc_odd_partial_numerator)
223223

224224
should_stop = should_stop | (tf.math.abs(delta - one) < tolerance)
225225

@@ -420,7 +420,7 @@ def _betainc_partials(a, b, x):
420420
x = tf.convert_to_tensor(x, dtype=dtype)
421421

422422
broadcast_shape = functools.reduce(
423-
ps.broadcast_shape, [ps.shape(a), ps.shape(b), ps.shape(x)])
423+
ps.broadcast_shape, [ps.shape(a), ps.shape(b), ps.shape(x)])
424424

425425
a = tf.broadcast_to(a, broadcast_shape)
426426
b = tf.broadcast_to(b, broadcast_shape)

tensorflow_probability/python/math/special_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ def betainc_partials_of_partial_x(a, b, x):
469469

470470
# Wrap in tf.function and compile for faster computations.
471471
betainc_partials_of_partials = [
472-
tf.function(partial_fn, autograph=False, jit_compile=True)
473-
for partial_fn in betainc_partials_of_partials]
472+
tf.function(partial_fn, autograph=False, jit_compile=True)
473+
for partial_fn in betainc_partials_of_partials]
474474

475475
partials_of_partials = [
476476
partial_fn(a, b, x) for partial_fn in betainc_partials_of_partials]

0 commit comments

Comments
 (0)