Skip to content
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

fix NaN gradients in Sphere #79

Closed
wants to merge 1 commit into from
Closed

fix NaN gradients in Sphere #79

wants to merge 1 commit into from

Conversation

andbloch
Copy link
Contributor

I've been getting the error that AcosBackward gave NaN gradients. Slightly reducing the clamping fixes the error. One might use higher precisions. I just want to mention the problem with this pull request.

I've been getting the error that AcosBackward gave NaN gradients. Slightly reducing the clamping fixes the error. One might use higher precisions. I just want to mention the problem with this pull request.
@andbloch andbloch changed the title fix NaN gradients fix NaN gradients in Sphere Jun 26, 2019
@ferrine
Copy link
Member

ferrine commented Jun 26, 2019

Hmm, interesting, thanks! I think that 0.999 may be more tighter. I would suggest to check it over grid for both float 32 and 64. That's exactly the way we adjusted eps for PoincareBall.

PS We did optimization with sphere manifold a lot and you are the first to meet this problem, congratulations, lucky you:)

@ferrine ferrine mentioned this pull request Sep 6, 2019
@ferrine ferrine closed this Sep 6, 2019
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.

None yet

2 participants