Skip to content

Commit

Permalink
reformat black
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Louly committed Oct 11, 2023
1 parent d61f046 commit 5c9ace2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion optimum/onnxruntime/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,8 @@ def _inner_training_loop(
model.clip_grad_norm_(args.max_grad_norm)
else:
self.accelerator.clip_grad_norm_(
model.parameters(), args.max_grad_norm,
model.parameters(),
args.max_grad_norm,
)

# Optimizer step
Expand Down

0 comments on commit 5c9ace2

Please sign in to comment.