Skip to content

Commit

Permalink
fix import renaming on python 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
152334H authored Feb 9, 2024
1 parent f005cc1 commit 9c7a61a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sparse_autoencoder/optimizer/adam_with_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from torch import Tensor
from torch.nn.parameter import Parameter
from torch.optim import Adam
from torch.optim.optimizer import params_t
try: from torch.optim.optimizer import params_t
except ImportError: from torch.optim.optimizer import ParamsT as params_t

from sparse_autoencoder.tensor_types import Axis

Expand Down

0 comments on commit 9c7a61a

Please sign in to comment.