Skip to content

Commit

Permalink
typo clip grad without fp16
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathilde Caron committed May 13, 2021
1 parent d7eea5a commit 6a9d245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_dino.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def train_one_epoch(student, teacher, teacher_without_ddp, dino_loss, data_loade
if fp16_scaler is None:
loss.backward()
if args.clip_grad:
param_norms = utils.clip_gradients(model, args.clip_grad)
param_norms = utils.clip_gradients(student, args.clip_grad)
utils.cancel_gradients_last_layer(epoch, student,
args.freeze_last_layer)
optimizer.step()
Expand Down

0 comments on commit 6a9d245

Please sign in to comment.