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

Remove casting from jax.nn.one_hot #25669

Merged
merged 1 commit into from
Dec 23, 2024
Merged

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Dec 23, 2024

This change was made after the most recent release, so is safe to remove. Casting float to int potentially changes intentional behavior: e.g. NaN casts to 0. Some downstream users currently use NaN to mark rows which should have no one-hot entry.

Fixes issue introduced in #25590.

This change was made after the most recent release, so is safe
to remove. Casting float to int potentially changes intentional
beavior: e.g. NaN casts to 0. Some downstream users currently
use NaN to mark rows which should have no one-hot entry.
@jakevdp jakevdp added the pull ready Ready for copybara import and testing label Dec 23, 2024
@jakevdp jakevdp self-assigned this Dec 23, 2024
@copybara-service copybara-service bot merged commit c57b49c into jax-ml:main Dec 23, 2024
24 checks passed
@jakevdp jakevdp deleted the undep branch December 23, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants