MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / __init__

Method __init__

optimizer.py:132–145  ·  view source on GitHub ↗
(self,
                 step_each_epoch,
                 epochs,
                 lr_end=1e-7,
                 power=1.0,
                 warmup_epoch=0,
                 last_epoch=-1,
                 **kwargs)

Source from the content-addressed store, hash-verified

130
131class PolynomialLR(object):
132 def __init__(self,
133 step_each_epoch,
134 epochs,
135 lr_end=1e-7,
136 power=1.0,
137 warmup_epoch=0,
138 last_epoch=-1,
139 **kwargs):
140 super(PolynomialLR, self).__init__()
141 self.lr_end = lr_end
142 self.power = power
143 self.epochs = epochs * step_each_epoch
144 self.warmup_epoch = warmup_epoch * step_each_epoch
145 self.last_epoch = last_epoch
146
147 def __call__(self, optimizer):
148 lr_lambda = partial(

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected