Skip to content

Commit 5338ae3

Browse files
srvasudeedward-bot
authored andcommitted
Use tfp.random.rademacher as tfp.math.random_rademacher is deprecated.
PiperOrigin-RevId: 478812076
1 parent 5c13e76 commit 5338ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/no_u_turn_sampler/nuts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def kernel(target_log_prob_fn,
127127
# Grow the No-U-Turn Sampler trajectory by choosing a random direction and
128128
# simulating Hamiltonian dynamics in that direction. This extends either
129129
# the forward or reverse state.
130-
direction = tfp.math.random_rademacher([1], seed=seed_stream())
130+
direction = tfp.random.rademacher([1], seed=seed_stream())
131131
if direction < 0:
132132
[
133133
reverse_state,

0 commit comments

Comments
 (0)