Skip to content

Commit

Permalink
address #256
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Nov 30, 2023
1 parent 898f647 commit 37076fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions audiolm_pytorch/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ def train_step(self):
accum_log(logs, {name: discr_loss.item() / self.grad_accum_every})

if exists(self.discr_max_grad_norm):
self.accelerator.clip_grad_norm_(self.soundstream.discriminators.parameters(), self.discr_max_grad_norm)
self.accelerator.clip_grad_norm_(self.soundstream.stft_discriminator.parameters(), self.discr_max_grad_norm)

# gradient step for all discriminators
Expand Down
2 changes: 1 addition & 1 deletion audiolm_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.8.3'
__version__ = '1.8.4'

0 comments on commit 37076fd

Please sign in to comment.