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

Method piecewise_decay

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

Source from the content-addressed store, hash-verified

65 return lr
66
67 def piecewise_decay(self):
68 gamma = cfg.SOLVER.GAMMA
69 bd = [self.step_per_epoch * e for e in cfg.SOLVER.DECAY_EPOCH]
70 lr = [cfg.SOLVER.LR * (gamma**i) for i in range(len(bd) + 1)]
71 decayed_lr = fluid.layers.piecewise_decay(boundaries=bd, values=lr)
72 return decayed_lr
73
74 def poly_decay(self):
75 power = cfg.SOLVER.POWER

Callers 4

get_lrMethod · 0.95
_piecewise_decayMethod · 0.80
optimizationFunction · 0.80
optimizationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected