Skip to content

Commit

Permalink
Use tfp.random.rademacher as tfp.math.random_rademacher is deprecated.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 478812076
  • Loading branch information
srvasude authored and edward-bot committed Oct 4, 2022
1 parent 5c13e76 commit 5338ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/no_u_turn_sampler/nuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def kernel(target_log_prob_fn,
# Grow the No-U-Turn Sampler trajectory by choosing a random direction and
# simulating Hamiltonian dynamics in that direction. This extends either
# the forward or reverse state.
direction = tfp.math.random_rademacher([1], seed=seed_stream())
direction = tfp.random.rademacher([1], seed=seed_stream())
if direction < 0:
[
reverse_state,
Expand Down

0 comments on commit 5338ae3

Please sign in to comment.