Skip to content

Commit

Permalink
Add debug line for wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Jul 8, 2024
1 parent 1dc7d85 commit 1c42025
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kronfluence/score/dot_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def compute_dot_products_with_loader(
for batch in train_loader:
batch = send_to_device(tensor=batch, device=state.device)

print(tracked_module_names)

with no_sync(model=model, state=state):
model.zero_grad(set_to_none=True)
with autocast(device_type=state.device.type, enabled=enable_amp, dtype=score_args.amp_dtype):
Expand Down

0 comments on commit 1c42025

Please sign in to comment.