-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
When instantiating the object WarmUpScheduler and passing e.g. the torch.optim.lr_scheduler.CosineAnnealingLR as in example.py execution fails due to the following error:
Traceback (most recent call last):
File "test.py", line 26, in <module>
warmup_scheduler = WarmUpScheduler(optimizer, lr_scheduler,
File "/Users/tomas.gadea/Desktop/test/env/lib/python3.8/site-packages/warmup_scheduler_pytorch/warmup_module.py", line 52, in __init__
raise TypeError(f'{type(lr_scheduler).__name__} is not a lr_scheduler in pytorch')
TypeError: CosineAnnealingLR is not a lr_scheduler in pytorch
It does not work for any of the typical torch schedulers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels