Skip to content

Commit

Permalink
torch.no_grad vs. requires_grad
Browse files Browse the repository at this point in the history
  • Loading branch information
chunhuizhang committed Jul 3, 2022
1 parent 8131406 commit 3e8c688
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fine_tune/bert/tutorials/03_bert_input_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
model.eval()
with torch.no_grad():
output = model(**model_input)

0 comments on commit 3e8c688

Please sign in to comment.