Skip to content

Zero Gradients after argmax #11033

Answered by cgarciae
aniquetahir asked this question in Q&A
Discussion options

You must be logged in to vote

argmax is not differentiable, if you want to train a classifier use optax.softmax_cross_entropy

Replies: 2 comments 1 reply

Comment options

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

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

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