Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Fuchs committed Jul 17, 2023
1 parent de8293b commit 2057f71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flair/trainers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,9 @@ def train_custom(
total_train_samples += batch_train_samples
train_loss = batch_train_loss / batch_train_samples
self._record(MetricRecord.scalar(("train", "batch_loss"), train_loss, total_train_samples))
self._record(MetricRecord.scalar(("train", "gradient_norm"), gradient_norm, total_train_samples))
self._record(
MetricRecord.scalar(("train", "gradient_norm"), gradient_norm, total_train_samples)
)

epoch_train_loss += batch_train_loss
epoch_train_samples += batch_train_samples
Expand Down

0 comments on commit 2057f71

Please sign in to comment.