Skip to content

Commit

Permalink
removed .item() from the averaging
Browse files Browse the repository at this point in the history
  • Loading branch information
AznamirWoW committed Jan 4, 2025
1 parent b59f4af commit de7d1eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rvc/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ def train_and_evaluate(
# Logging and checkpointing
if rank == 0:

avg_losses["disc_loss_queue"].append(epoch_disc_sum.item() / len(train_loader))
avg_losses["gen_loss_queue"].append(epoch_gen_sum.item() / len(train_loader))
avg_losses["disc_loss_queue"].append(epoch_disc_sum / len(train_loader))
avg_losses["gen_loss_queue"].append(epoch_gen_sum / len(train_loader))

# used for tensorboard chart - all/mel
mel = spec_to_mel_torch(
Expand Down

0 comments on commit de7d1eb

Please sign in to comment.