Skip to content

piecewise function with apparently continuous gradients - but jnp.where produces nan gradients. #22265

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

You must be logged in to vote

It sounds like this FAQ entry will be relevant: Gradients contain NaN when using where.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by HansN87
Comment options

You must be logged in to vote
0 replies
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