feat: add repr for LinearTransform
This commit is contained in:
parent
46ff1c4eb1
commit
85f75bb28c
@ -38,6 +38,9 @@ class LinearTransform(torch.nn.Module):
|
||||
def forward(self, x):
|
||||
return x @ self._weights
|
||||
|
||||
def extra_repr(self):
|
||||
return f"weights: (shape: {tuple(self._weights.shape)})"
|
||||
|
||||
|
||||
# Aliases
|
||||
Omega = LinearTransform
|
||||
|
Loading…
Reference in New Issue
Block a user