Skip to content

Conversation

@QiJune
Copy link
Collaborator

@QiJune QiJune commented Jan 21, 2020

Fix #1676

@QiJune QiJune requested review from lwpyr and skydoorkai January 22, 2020 01:32
if t == nil {
return fmt.Errorf("grad %s not in Parameter", grad.Name)
}
kernel.SGD(grad.Value, t.Value, opt.GetLR(), int64(len(grad.Value)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use goroutine here to SGD variables in parallel.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The performance optimization could be done in the next PR.

@QiJune QiJune merged commit 4ffb531 into sql-machine-learning:develop Jan 23, 2020
@QiJune QiJune deleted the go_sgd_opt branch January 23, 2020 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add SGD optimizer in Go

2 participants