Commit 51efde54 authored by lukovnikov's avatar lukovnikov
Browse files

cos fix

parent f113a2df
......@@ -69,7 +69,7 @@ class WarmupCosineSchedule(LRSchedule):
return progress / self.warmup
else:
progress = (progress - self.warmup) / (1 - self.warmup) # progress after warmup
return 0.5 * (1. + torch.cos(math.pi * self.cycles * 2 * progress))
return 0.5 * (1. + math.cos(math.pi * self.cycles * 2 * progress))
class WarmupConstantSchedule(LRSchedule):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment