Skip to content

Commit

Permalink
Fix test_convert_seed.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 441138590
  • Loading branch information
franrruiz authored and DistraxDev committed Apr 12, 2022
1 parent 95056e2 commit ad5e452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrax/_src/distributions/distribution_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def sampler(dist, seed):
)
def test_convert_seed(self, dtype):
rng, _ = distribution.convert_seed_and_sample_shape(dtype(0), 2)
assert isinstance(rng, distribution.PRNGKey)
jax.random.split(rng) # Should not raise an error.

@parameterized.named_parameters(
('int', 2, (2,)),
Expand Down

0 comments on commit ad5e452

Please sign in to comment.