Skip to content

Commit 40842c4

Browse files
authored
fix(aggregation): GradDrop error message typo (#262)
1 parent 301b30e commit 40842c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchjd/aggregation/graddrop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class GradDrop(Aggregator):
3939
def __init__(self, f: Callable = _identity, leak: Tensor | None = None):
4040
if leak is not None and leak.dim() != 1:
4141
raise ValueError(
42-
"Parameter `leak` should be a 1-dimensional tensor. Found `weights.shape = "
42+
"Parameter `leak` should be a 1-dimensional tensor. Found `leak.shape = "
4343
f"{leak.shape}`."
4444
)
4545

0 commit comments

Comments
 (0)