Skip to content

Conversation

@ssnl
Copy link
Collaborator

@ssnl ssnl commented Apr 3, 2018

Following up #6000

def __init__(self, params, lr=required, momentum=0, dampening=0,
weight_decay=0, nesterov=False):
if not 0.0 <= lr:
if lr is not required and lr < 0.0:

This comment was marked as off-topic.

This comment was marked as off-topic.

@soumith soumith merged commit a288053 into pytorch:master Apr 4, 2018
@ssnl ssnl deleted the sgd_lr branch April 4, 2018 01:30
@fmassa
Copy link
Member

fmassa commented Apr 4, 2018

Should this fix be applied to all optimizers?

@ssnl
Copy link
Collaborator Author

ssnl commented Apr 4, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants