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

Could I get a value "0" when it is not differentiable at any variable ,No panic? #56

Closed
Dirreke opened this issue Jan 18, 2022 · 2 comments

Comments

@Dirreke
Copy link

Dirreke commented Jan 18, 2022

When I get the differential of constant at variable, I hope I can get the value "0" or an option of error, but it returns panic

@raskr
Copy link
Owner

raskr commented Jan 28, 2022

grad_helper doesn't panic, but this may not be what you want.
Getting 0 is impossible currently.

@raskr
Copy link
Owner

raskr commented Apr 22, 2022

Fixed in the master head

@raskr raskr closed this as completed Apr 22, 2022
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

No branches or pull requests

2 participants