Skip to content

Commit 956e6ce

Browse files
committed
Rename ComputeLinearGramian to ComputerGramian, it was made agnostic of the module.
1 parent 99e4c78 commit 956e6ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/torchjd/autogram/_gramian_computer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __call__(
9696
X = args[0]
9797
dY = grad_outputs[0]
9898

99-
gramian = ComputeLinearGramian.apply(self._compute_gramian, dY, X)
99+
gramian = ComputeGramian.apply(self._compute_gramian, dY, X)
100100
return gramian
101101

102102
def _compute_gramian(self, dY1: Tensor, dY2: Tensor, X: Tensor) -> Tensor:
@@ -121,7 +121,7 @@ def _compute_gramian(self, dY1: Tensor, dY2: Tensor, X: Tensor) -> Tensor:
121121
return G
122122

123123

124-
class ComputeLinearGramian(torch.autograd.Function):
124+
class ComputeGramian(torch.autograd.Function):
125125
@staticmethod
126126
def forward(
127127
compute_gramian_fn: Callable[[Tensor, Tensor, Tensor], Tensor],

0 commit comments

Comments
 (0)