Skip to content

Commit

Permalink
display weighted module dtype and device (#173)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Trom <[email protected]>
  • Loading branch information
piercus and limiteinductive authored Jan 11, 2024
1 parent 14ce2f5 commit 457c3f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/refiners/fluxion/layers/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ def device(self) -> Device:
def dtype(self) -> DType:
return self.weight.dtype

def __str__(self) -> str:
return f"{super().__str__().removesuffix(')')}, device={self.device}, dtype={str(self.dtype).removeprefix('torch.')})"


class TreeNode(TypedDict):
value: str
Expand Down

0 comments on commit 457c3f5

Please sign in to comment.