Skip to content

Commit

Permalink
fix: Fixed ivy.argsort for jax backend (ivy-llc#28422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai-Suraj-27 authored and Kacper-W-Kozdon committed Feb 27, 2024
1 parent 9563832 commit 4196322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/backends/jax/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def argsort(
) -> JaxArray:
kind = "stable" if stable else "quicksort"
return (
jnp.argsort(-x, axis=axis, kind=kind)
jnp.argsort(x, axis=axis, kind=kind, descending=descending)
if descending
else jnp.argsort(x, axis=axis, kind=kind)
)
Expand Down

0 comments on commit 4196322

Please sign in to comment.