MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / cosine_decay

Method cosine_decay

CV/SemSegPaddle/src/utils/solver.py:80–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 return decayed_lr
79
80 def cosine_decay(self):
81 decayed_lr = fluid.layers.cosine_decay(
82 cfg.SOLVER.LR, self.step_per_epoch, self.decay_epochs)
83 return decayed_lr
84
85 def get_lr(self, lr_policy):
86 if lr_policy.lower() == 'poly':

Callers 2

get_lrMethod · 0.95
_cosine_decayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected