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.
JacobianAccumulator
1 parent 1684cbd commit 6d161abCopy full SHA for 6d161ab
src/torchjd/autogram/_module_hook_manager.py
@@ -108,6 +108,8 @@ class JacobianAccumulator(torch.autograd.Function):
108
toggle mechanism to activate only during the Gramian accumulation phase.
109
"""
110
111
+ generate_vmap_rule = True
112
+
113
@staticmethod
114
def forward(*xs: Tensor) -> tuple[Tensor, ...]:
115
return tuple([x.detach() for x in xs])
0 commit comments