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

better log2 doc #22191

Merged
merged 1 commit into from
Jul 3, 2024
Merged

better log2 doc #22191

merged 1 commit into from
Jul 3, 2024

Conversation

pkgoogle
Copy link
Contributor

better log2 doc

Part of #21461

jax/_src/numpy/ufuncs.py Outdated Show resolved Hide resolved
@jakevdp
Copy link
Collaborator

jakevdp commented Jun 28, 2024

Thanks! If you can squash the changes into a single commit, then we'll get this merged.

Copy link
Member

@dfm dfm left a 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!

Comment on lines 848 to 850
>>> x2 = jnp.array([-0.25, -0.5, -1, -2, -4, -8])
>>> jnp.log2(x2)
Array([nan, nan, nan, nan, nan, nan], dtype=float32)
Copy link
Member

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!

@dfm dfm mentioned this pull request Jul 1, 2024
removing complex example

removing negative example
Copy link
Member

@dfm dfm left a comment

Choose a reason for hiding this comment

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

Looks good - thanks!

@google-ml-butler google-ml-butler bot added kokoro:force-run pull ready Ready for copybara import and testing labels Jul 2, 2024
@copybara-service copybara-service bot merged commit c00ac4f into google:main Jul 3, 2024
17 checks passed
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.

None yet

4 participants