We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf07444 commit a1cdc55Copy full SHA for a1cdc55
src/torchjd/autogram/_gramian_computer.py
@@ -4,6 +4,8 @@
4
from torch import Tensor
5
from torch.utils._pytree import PyTree
6
7
+from torchjd.autogram._jacobian_computer import JacobianComputer
8
+
9
10
class GramianComputer(ABC):
11
@abstractmethod
@@ -24,7 +26,7 @@ def reset(self):
24
26
25
27
28
class JacobianBasedGramianComputer(GramianComputer, ABC):
- def __init__(self, jacobian_computer):
29
+ def __init__(self, jacobian_computer: JacobianComputer):
30
self.jacobian_computer = jacobian_computer
31
32
@staticmethod
0 commit comments