Skip to content

Piecewise function gives nan gradient at differentiable point #5810

Answered by jakevdp
wulu473 asked this question in Q&A
Discussion options

You must be logged in to vote

This section of the FAQ might be helpful: https://jax.readthedocs.io/en/latest/faq.html#gradients-contain-nan-where-using-where

Please let me know if that does not answer your question!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wulu473
Comment options

Answer selected by wulu473
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants