Skip to content

Instantly share code, notes, and snippets.

View avijit9's full-sized avatar
🎯
Focusing

Avijit Dasgupta avijit9

🎯
Focusing
View GitHub Profile
@avijit9
avijit9 / stlr.py
Created February 17, 2020 15:58 — forked from Deepayan137/stlr.py
'STLR scheduler from https://arxiv.org/abs/1801.06146'
class STLR(_LRScheduler):
def __init__(self, optimizer, T_max, last_epoch=-1, ratio=32):
self.T_max = T_max
self.cut = np.floor(T_max*0.1)
self.ratio = ratio
super(STLR, self).__init__(optimizer, last_epoch)
def get_lr(self):