Skip to content

Commit

Permalink
fix: [pre-commit.ci] auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 37ce29e commit f85efec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchopt/nn/stateless.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def reparametrize(
module: nn.Module,
named_tensors: dict[str, torch.Tensor] | Iterable[tuple[str, torch.Tensor]],
allow_missing: bool = False,
) -> Generator[nn.Module, None, None]:
) -> Generator[nn.Module]:
"""Reparameterize the module parameters and/or buffers."""
if not isinstance(named_tensors, dict):
named_tensors = dict(named_tensors)
Expand Down

0 comments on commit f85efec

Please sign in to comment.