Skip to content

Commit

Permalink
refine codeformat
Browse files Browse the repository at this point in the history
  • Loading branch information
HeCheng0625 committed Dec 18, 2023
1 parent 40d0ff4 commit 5cea9a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions models/tts/naturalspeech2/ns2_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

class NS2Trainer(TTSTrainer):
def __init__(self, args, cfg):

self.args = args
self.cfg = cfg

Expand Down Expand Up @@ -355,7 +354,7 @@ def _build_dataloader(self):
def _build_optimizer(self):
optimizer = torch.optim.AdamW(
filter(lambda p: p.requires_grad, self.model.parameters()),
**self.cfg.train.adam
**self.cfg.train.adam,
)
return optimizer

Expand Down Expand Up @@ -796,4 +795,4 @@ def train_loop(self):
),
)
)
self.accelerator.end_training()
self.accelerator.end_training()

0 comments on commit 5cea9a3

Please sign in to comment.