(self)
| 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 |
no outgoing calls
no test coverage detected