Skip to content

Commit 2882457

Browse files
committed
Add __repr__ method to ParameterProperties
1 parent 1cd9a96 commit 2882457

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dynamax/parameters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ def tree_flatten(self):
4646
def tree_unflatten(cls, aux_data, children):
4747
return cls(*aux_data)
4848

49+
def __repr__(self):
50+
return f"ParameterProperties(trainable={self.trainable}, constrainer={self.constrainer})"
51+
4952

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

0 commit comments

Comments
 (0)