-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
better log2 doc #22191
better log2 doc #22191
Conversation
Thanks! If you can squash the changes into a single commit, then we'll get this merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have one last quick request here, then let's get this merged. Thanks!
jax/_src/numpy/ufuncs.py
Outdated
>>> x2 = jnp.array([-0.25, -0.5, -1, -2, -4, -8]) | ||
>>> jnp.log2(x2) | ||
Array([nan, nan, nan, nan, nan, nan], dtype=float32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that this example really adds much to the discussion. I'd recommend that we remove it!
removing complex example removing negative example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - thanks!
better log2 doc
Part of #21461