Skip to content

Commit ac8ddd3

Browse files
committed
Update the docstring of normalize
1 parent 3bcc152 commit ac8ddd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchjd/aggregation/_gramian_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def compute_gramian(matrix: Tensor) -> Tensor:
1212

1313
def normalize(gramian: Tensor, eps: float) -> Tensor:
1414
"""
15-
Normalizes the gramian with respect to the Frobenius norm.
15+
Normalizes the gramian `G=AA^T` with respect to the Frobenius norm of `A`.
1616
1717
If `G=A A^T`, then the Frobenius norm of `A` is the square root of the trace of `G`, i.e., the
1818
sqrt of the sum of the diagonal elements. The gramian of the (Frobenius) normalization of `A` is

0 commit comments

Comments
 (0)