Skip to content

Commit

Permalink
Get optimizer error fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
escfrya authored Sep 30, 2023
1 parent a2b9675 commit 24b572c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audiocraft/solvers/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_optimizer(params: tp.Union[nn.Module, tp.Iterable[torch.Tensor]], cfg: o
elif cfg.optimizer == 'dadam':
optimizer = optim.DAdaptAdam(parameters, lr=cfg.lr, **cfg.adam)
else:
raise ValueError(f"Unsupported LR Scheduler: {cfg.lr_scheduler}")
raise ValueError(f"Unsupported Optimizer: {cfg.optimizer}")
return optimizer


Expand Down

0 comments on commit 24b572c

Please sign in to comment.