Skip to content

Commit

Permalink
Fix bug in solve_batch_cg
Browse files Browse the repository at this point in the history
  • Loading branch information
AnesBenmerzoug committed Oct 23, 2023
1 parent 536c841 commit 354774f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pydvl/influence/torch/torch_differentiable.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def solve_batch_cg(
if len(training_data) == 0:
raise ValueError("Training dataloader must not be empty.")

total_grad_xy = torch.empty()
total_grad_xy = torch.empty(0)
total_points = 0

for x, y in maybe_progress(training_data, progress, desc="Batch Train Gradients"):
Expand Down

0 comments on commit 354774f

Please sign in to comment.