Skip to content

Commit

Permalink
Update random.py
Browse files Browse the repository at this point in the history
Ran pre-commit.
  • Loading branch information
AdrienCorenflos authored Dec 12, 2022
1 parent ed2b8fc commit b77cf5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aesara/link/jax/dispatch/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ def sample_fn(rng, size, dtype, *parameters):
rng_key = rng["jax_state"]
rng_key, sampling_key = jax.random.split(rng_key, 2)
minval, maxval = parameters
sample = jax_op(sampling_key, shape=size, dtype=dtype, minval=minval, maxval=maxval)
sample = jax_op(
sampling_key, shape=size, dtype=dtype, minval=minval, maxval=maxval
)
rng["jax_state"] = rng_key
return (rng, sample)

Expand Down

0 comments on commit b77cf5d

Please sign in to comment.