Skip to content

Commit

Permalink
fixing typing in dadam
Browse files Browse the repository at this point in the history
  • Loading branch information
adefossez committed Oct 9, 2023
1 parent 75426f4 commit be7a4ff
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions audiocraft/optim/dadam.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@
# LICENSE file in the root directory of this source tree.

import logging
from typing import TYPE_CHECKING, Any
from typing import Any

import torch
import torch.optim
import torch.distributed as dist

if TYPE_CHECKING:
from torch.optim.optimizer import _params_t
else:
_params_t = Any


logger = logging.getLogger(__name__)
_params_t = Any


def to_real(x):
Expand Down

0 comments on commit be7a4ff

Please sign in to comment.