main_lincls.py
def adjust_learning_rate(optimizer, epoch, args):
    """Decay the learning rate based on schedule"""
    lr = args.lr
    for milestone in args.schedule:
        lr *= args.lrd if epoch >= milestone else 1.
    for param_group in optimizer.param_groups:
        param_group['lr'] = lr
Decay the learning rate based on schedule
Decay the learning rate based on schedule
Decay the learning rate based on schedule
def adjust_learning_rate(optimizer, epoch, args):
    lr = args.lr
    for milestone in args.schedule:
        lr *= args.lrd if epoch >= milestone else 1.
    for param_group in optimizer.param_groups:
        param_group['lr'] = lr
def adjust_learning_rate ( optimizer , epoch , args ) : lr = args . lr for milestone in args . schedule : lr *= args . lrd if epoch >= milestone else 1. for param_group in optimizer . param_groups : param_group [ 'lr' ] = lr
Decay the learning rate based on schedule
Decay the learning rate based on schedule
"""Decay the learning rate based on schedule"""
optimizer
epoch
args