Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH]: Fix misc typos in soft_sort doc #397

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

pierreablin
Copy link
Contributor

No description provided.


will output a vector of shape ``x.shape``, with values in :math:`[0,1]`, that
are differentiable approximations to the binary mask selecting the top $k$
entries in ``x``. These should be compared to the non-differentiable mask
obtained with :func:`jax.numpy.argsort`, which can be obtained as:
obtained with :func:`jax.numpy.sort`, which can be obtained as:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point... maybe my definition of topk below is a bit ambiguous, since it can return more than k values with ties.

@marcocuturi marcocuturi merged commit 6becead into ott-jax:main Jul 18, 2023
10 checks passed
@marcocuturi
Copy link
Contributor

thanks!

michalk8 pushed a commit that referenced this pull request Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants