Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzo committed Jan 14, 2021
1 parent 7ceabb7 commit d50b992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion torch/distributions/constraints.py
Expand Up @@ -131,7 +131,7 @@ def __call__(self, fn):
"""
Support for syntax to customize static attributes::
@constraints.dependent_dependent(is_discrete=True, event_dim=1)
@constraints.dependent_property(is_discrete=True, event_dim=1)
def support(self):
...
"""
Expand Down
3 changes: 1 addition & 2 deletions torch/distributions/uniform.py
Expand Up @@ -22,8 +22,7 @@ class Uniform(Distribution):
high (float or Tensor): upper range (exclusive).
"""
# TODO allow (loc,scale) parameterization to allow independent constraints.
arg_constraints = {'low': constraints.dependent(is_discrete=False, event_dim=0),
'high': constraints.dependent(is_discrete=False, event_dim=0)}
arg_constraints = {'low': constraints.dependent, 'high': constraints.dependent}
has_rsample = True

@property
Expand Down

0 comments on commit d50b992

Please sign in to comment.