Skip to content

Use float(η), and fixed eps #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

mcabbott
Copy link
Member

Fixes #119, by making Adam(0) promote to a float. Chooses Float32. This is what ClipGrad(10) already did, to make adjust happy.

Also changes eps so that Adam(0.1) has the same value as Adam(0.1f0). Not entirely sure that's ideal. With Adam(0.1) the gradient update is done in Float64 even if all arrays are Float32.

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.

Adam(0) fails
1 participant