Skip to content

Commit

Permalink
fix transformed distribution validate samples (#1465)
Browse files Browse the repository at this point in the history
  • Loading branch information
xidulu authored Aug 9, 2022
1 parent be1eb6b commit f48e341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpyro/distributions/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def __get__(self, instance, obj_type=None):

def validate_sample(log_prob_fn):
def wrapper(self, *args, **kwargs):
log_prob = log_prob_fn(self, *args, *kwargs)
log_prob = log_prob_fn(self, *args, **kwargs)
if self._validate_args:
value = kwargs["value"] if "value" in kwargs else args[0]
mask = self._validate_sample(value)
Expand Down

0 comments on commit f48e341

Please sign in to comment.