Skip to content

Commit 47bf743

Browse files
committed
Remove useless overload of compute_gramian
1 parent ab809c6 commit 47bf743

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/torchjd/_linalg/_gramian.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ def compute_gramian(matrix: Tensor, contracted_dims: Literal[-1]) -> PSDMatrix:
1616
pass
1717

1818

19-
@overload
20-
def compute_gramian(matrix: Tensor, contracted_dims: int) -> PSDTensor:
21-
pass
22-
23-
2419
def compute_gramian(matrix: Tensor, contracted_dims: int = -1) -> PSDTensor:
2520
"""
2621
Computes the `Gramian matrix <https://en.wikipedia.org/wiki/Gram_matrix>`_ of the input.

0 commit comments

Comments
 (0)