Skip to content

Commit

Permalink
format black
Browse files Browse the repository at this point in the history
  • Loading branch information
helpmefindaname committed Feb 2, 2024
1 parent 85f4c89 commit 9841c8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flair/trainers/language_model_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,7 @@ def train(
optimizer.load_state_dict(self.optimizer_state)

if isinstance(optimizer, (AdamW, SGDW)):
scheduler: ReduceLROnPlateau = ReduceLRWDOnPlateau(
optimizer, factor=anneal_factor, patience=patience
)
scheduler: ReduceLROnPlateau = ReduceLRWDOnPlateau(optimizer, factor=anneal_factor, patience=patience)
else:
scheduler = ReduceLROnPlateau(optimizer, factor=anneal_factor, patience=patience)

Expand Down

0 comments on commit 9841c8b

Please sign in to comment.