Skip to content

Commit

Permalink
Add debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Jul 8, 2024
1 parent 7c6e0a3 commit e0bc934
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kronfluence/module/tracker/factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def backward_hook(output_gradient: torch.Tensor) -> None:

@torch.no_grad()
def shared_backward_hook(output_gradient: torch.Tensor) -> None:
print("Shared processed")
handle = self.cached_hooks.pop()
handle.remove()
output_gradient = self._preprocess_gradient(
Expand Down

0 comments on commit e0bc934

Please sign in to comment.