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

Fix min / max value for 16 bit signed type #1516

Merged
merged 3 commits into from
Jul 26, 2024
Merged

Conversation

preciz
Copy link
Contributor

@preciz preciz commented Jul 26, 2024

Fixes min / max value for 16 bit signed type, plus a small typo fix.

assert_equal(
generic_as_type(non_finite, Nx.template({}, {:s, 16})),
Nx.tensor([32767, 0, -32768], type: {:s, 16})

Thank you for reviewing.

@josevalim josevalim merged commit 5083bf1 into elixir-nx:main Jul 26, 2024
6 of 8 checks passed
@josevalim
Copy link
Collaborator

💚 💙 💜 💛 ❤️

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