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

Cleanup: fix type issues in lax_numpy.py #3816

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Jul 21, 2020

These changes are basically a no-op wth the current default types, but fixes issues if/when those types are changed to 32-bit in the future.

These changes are basically a no-op wth the current default types, but fixes issues if/when those types are changed to 32-bit in the future.
@@ -204,6 +204,13 @@ def _make_scalar_type(np_scalar_type):

_canonicalize_axis = lax._canonicalize_axis

_DEFAULT_TYPEMAP = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This change looks unrelated, or at least, I can't see why it would change anything?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah - I moved this to a global constant because initially I used it in arange as well, before landing on the current approach. I thought it made more sense as a global constant, so I left it.

@jakevdp jakevdp merged commit fddb28d into jax-ml:master Jul 22, 2020
@jakevdp jakevdp deleted the lax-numpy-types branch July 22, 2020 19:50
NeilGirdhar pushed a commit to NeilGirdhar/jax that referenced this pull request Jul 24, 2020
These changes are basically a no-op wth the current default types, but fixes issues if/when those types are changed to 32-bit in the future.
NeilGirdhar pushed a commit to NeilGirdhar/jax that referenced this pull request Jul 24, 2020
These changes are basically a no-op wth the current default types, but fixes issues if/when those types are changed to 32-bit in the future.
NeilGirdhar pushed a commit to NeilGirdhar/jax that referenced this pull request Jul 24, 2020
These changes are basically a no-op wth the current default types, but fixes issues if/when those types are changed to 32-bit in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants