Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions distrax/_src/bijectors/bijector.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def __init__(self,
Only set to True if you're absoltely sure the Jacobian determinant is
constant; if you're not sure, set to None.
"""

if event_ndims_out is None:
event_ndims_out = event_ndims_in
if event_ndims_in < 0:
Expand Down
1 change: 1 addition & 0 deletions distrax/_src/distributions/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def sample(self,
Returns:
A sample of shape `sample_shape` + `batch_shape` + `event_shape`.
"""

rng, sample_shape = convert_seed_and_sample_shape(seed, sample_shape)
num_samples = functools.reduce(operator.mul, sample_shape, 1) # product

Expand Down