Skip to content

Commit

Permalink
Add __repr__ method to ParameterProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
gileshd committed Oct 15, 2024
1 parent 1cd9a96 commit 2882457
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dynamax/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def tree_flatten(self):
def tree_unflatten(cls, aux_data, children):
return cls(*aux_data)

def __repr__(self):
return f"ParameterProperties(trainable={self.trainable}, constrainer={self.constrainer})"


def to_unconstrained(params: ParameterSet, props: PropertySet) -> ParameterSet:
"""Convert the constrained parameters to unconstrained form.
Expand Down

0 comments on commit 2882457

Please sign in to comment.