Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Jan 22, 2025
1 parent e9fc71d commit 87c25e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions references/classification/train_pytorch_character.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def fit_one_epoch(model, train_loader, batch_transforms, optimizer, scheduler, a

pbar.set_description(f"Training loss: {train_loss.item():.6} | LR: {last_lr:.6}")
log(train_loss=train_loss.item(), lr=last_lr)

epoch_train_loss += train_loss.item()
batch_cnt += 1

Expand Down

0 comments on commit 87c25e1

Please sign in to comment.