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

Rename opaque dtype to extended dtype. #16824

Closed
wants to merge 1 commit into from

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Jul 24, 2023

This includes three deprecations:

  • jax.core.is_opaque_dtype(dt) is deprecated in favor of jnp.issubdtype(dt, jax.dtypes.extended).
  • jax.core.has_opaque_dtype(x) is deprecated in favor of jnp.issubdtype(x.dtype, jax.dtypes.extended).
  • the allow_opaque_dtype argument to jax.core.canonicalize_dtype is now allow_extended_dtype.

All of these APIs are in jax.core, which is explicitly excluded from the API Deprecation Policy, so these will not be mentioned in the changelog, nor will they be subject to the standard 3-month deprecation period.

@jakevdp jakevdp self-assigned this Jul 24, 2023
@jakevdp jakevdp added the pull ready Ready for copybara import and testing label Jul 24, 2023
@jakevdp jakevdp requested review from mattjj and froystig July 24, 2023 20:51
This includes three deprecations:
 - jax.core.is_opaque_dtype(dt) is deprecated in favor of jnp.issubdtype(dt, jax.dtypes.extended)
 - jax.core.has_opaque_dtype(x) is deprecated in favor of jnp.issubdtype(x.dtype, jax.dtypes.extended)
 - the allow_opaque_dtype argument to jax.core.canonicalize_dtype is now allow_extended_dtype
Because jax.core is explicitly excluded from the API deprecation policy, these changes will not be
subject to a standard 3-month deprecation period.
copybara-service bot pushed a commit that referenced this pull request Jul 24, 2023
--
b243ea7 by Jake VanderPlas <jakevdp@google.com>:

Rename opaque dtype to extended dtype.

This includes three deprecations:
 - jax.core.is_opaque_dtype(dt) is deprecated in favor of jnp.issubdtype(dt, jax.dtypes.extended)
 - jax.core.has_opaque_dtype(x) is deprecated in favor of jnp.issubdtype(x.dtype, jax.dtypes.extended)
 - the allow_opaque_dtype argument to jax.core.canonicalize_dtype is now allow_extended_dtype
Because jax.core is explicitly excluded from the API deprecation policy, these changes will not be
subject to a standard 3-month deprecation period.

COPYBARA_INTEGRATE_REVIEW=#16824 from jakevdp:extended-dtype b243ea7
PiperOrigin-RevId: 550674205
@jakevdp jakevdp closed this Jul 24, 2023
@jakevdp jakevdp deleted the extended-dtype branch July 24, 2023 21:47
@jakevdp
Copy link
Collaborator Author

jakevdp commented Jul 24, 2023

Merged in b4132b4

copybara-service bot pushed a commit to google-research/kauldron that referenced this pull request Jul 24, 2023
copybara-service bot pushed a commit to jax-ml/oryx that referenced this pull request Jul 24, 2023
copybara-service bot pushed a commit to jax-ml/oryx that referenced this pull request Jul 24, 2023
copybara-service bot pushed a commit to jax-ml/oryx that referenced this pull request Jul 24, 2023
copybara-service bot pushed a commit to google-research/kauldron that referenced this pull request Jul 25, 2023
copybara-service bot pushed a commit to google-research/kauldron that referenced this pull request Jul 25, 2023
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