Incorrect handling of nan
in in_top_k
of Jax backend (regression from keras 3.3.3)
#19995
Labels
nan
in in_top_k
of Jax backend (regression from keras 3.3.3)
#19995
The
top_in_k
function in the Jax backend provides an unexpected result.Example to reproduce the problem:
With keras 3.3.3, I'm getting the expected outcome:
[False True]
However, keras 3.4.1 gives this:
[ True True]
The new behavior is unexpected because
nan
shouldn't be be considered as large probability in the prediction.As a first step to debug it: The change in behavior has been introduced by #19814.
The text was updated successfully, but these errors were encountered: