(epoch)
| 68 | return math.pow(1 - epoch / args.max_epoch, args.poly_exp) |
| 69 | |
| 70 | def poly2_schd(epoch): |
| 71 | if epoch < args.poly_step: |
| 72 | poly_exp = args.poly_exp |
| 73 | else: |
| 74 | poly_exp = 2 * args.poly_exp |
| 75 | return math.pow(1 - epoch / args.max_epoch, poly_exp) |
| 76 | |
| 77 | if args.lr_schedule == 'scl-poly': |
| 78 | if cfg.REDUCE_BORDER_EPOCH == -1: |
nothing calls this directly
no outgoing calls
no test coverage detected