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

Change deprecated jax.tree_util.tree_map to jax.tree.map. Fix argument passed to jax.numpy.finfo call. #95

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

carlosgmartin
Copy link
Contributor

  1. Changes uses of the deprecated function jax.tree_util.tree_map to jax.tree.map.
  2. Fixes a call to jax.numpy.finfo to pass the dtype of the array rather than the array itself, which otherwise causes the following warning:

FutureWarning: unhashable type: <class 'jax._src.interpreters.partial_eval.DynamicJaxprTracer'>. Attempting to hash a tracer will lead to an error in a future JAX release.

@copybara-service copybara-service bot merged commit 548cfb2 into google-deepmind:main Jul 25, 2024
6 checks passed
@carlosgmartin carlosgmartin deleted the jax_tree_map branch July 25, 2024 22:39
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