# param_groups is an array of dicts # usually len of param_groups is 1 and you can access lr as follow optimizer.param_groups[0]['lr'] = 1e-3