Skip to content
Snippets Groups Projects
Commit 7ea8651f authored by Alice Brenon's avatar Alice Brenon
Browse files

Get rid of deprecation warning with AdamW optimiser

parent c51596da
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,8 @@ import datetime
from loaders import set_random
import time
import torch
from transformers import AdamW, get_linear_schedule_with_warmup
from torch.optim import AdamW
from transformers import get_linear_schedule_with_warmup
def chrono(f):
def wrapped(*args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment