Skip to content

fix(optim): avoid Adam NaNs for tiny gradients#2

Open
matthewdm0816 wants to merge 1 commit into
thustorage:mainfrom
matthewdm0816:fix-adam-tiny-grad-nan
Open

fix(optim): avoid Adam NaNs for tiny gradients#2
matthewdm0816 wants to merge 1 commit into
thustorage:mainfrom
matthewdm0816:fix-adam-tiny-grad-nan

Conversation

@matthewdm0816
Copy link
Copy Markdown

Fix #1

Avoids using Ofast, and add tests on small gradients. Adjust dynamic library name (hash) to avoid loading old libs.

Also fixes a nullptr potential problem.

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.

NaN occurred using C++ Adam optimizer

1 participant