Skip to content

Commit

Permalink
make type hints compatible with python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian-georgiev committed Nov 2, 2023
1 parent 102edbf commit 3c0696a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trak/gradient_computers.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def __init__(
grad_dim: int,
dtype: torch.dtype,
device: torch.device,
grad_wrt: Optional[list[str]] = None,
grad_wrt: Optional[Iterable[str]] = None,
) -> None:
super().__init__(model, task, grad_dim, dtype, device)
self.load_model_params(model)
Expand Down

0 comments on commit 3c0696a

Please sign in to comment.