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

Method lambda_func

optimizer.py:41–44  ·  view source on GitHub ↗
(self, current_step)

Source from the content-addressed store, hash-verified

39 return lr_scheduler.LambdaLR(optimizer, self.lambda_func, self.last_epoch)
40
41 def lambda_func(self, current_step):
42 if current_step < self.warmup_epoch:
43 return float(current_step) / float(max(1, self.warmup_epoch))
44 return self.gamma ** (current_step // self.step_size)
45
46
47class MultiStepLR(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected