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

Updated jax.tree_map to jax.tree_util.tree_map. As of [JAX 0.4.26](https://jax.readthedocs.io/en/latest/changelog.html#jax-0-4-26-april-3-2024), jax.tree_map is deprecated. We should switch to jax.tree.map if/when the JAX minimum version is >=0.4.26 for CLU. #342

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Apr 4, 2024

Updated jax.tree_map to jax.tree_util.tree_map. As of JAX 0.4.26, jax.tree_map is deprecated. We should switch to jax.tree.map if/when the JAX minimum version is >=0.4.26 for CLU.

Additional context:

@copybara-service copybara-service bot changed the title Updated jax.tree_map to jax.tree_util.tree_map. As of [JAX 0.4.26](https://jax.readthedocs.io/en/latest/changelog.html#jax-0-4-26-april-3-2024), jax.tree_map is deprecated. We should switch to jax.tree.map if/when the JAX minimum version is >=0.4.26. Updated jax.tree_map to jax.tree_util.tree_map. As of [JAX 0.4.26](https://jax.readthedocs.io/en/latest/changelog.html#jax-0-4-26-april-3-2024), jax.tree_map is deprecated. We should switch to jax.tree.map if/when the JAX minimum version is >=0.4.26 for CLU. Apr 4, 2024
…https://jax.readthedocs.io/en/latest/changelog.html#jax-0-4-26-april-3-2024), `jax.tree_map` is deprecated. We should switch to `jax.tree.map` if/when the JAX minimum version is >=0.4.26 for CLU.

Additional context:
* JAX PR that added the `jax.tree` module: jax-ml/jax#19588
* JAX PR that deprecated `jax.tree_map`: jax-ml/jax#19930

PiperOrigin-RevId: 622092167
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.

1 participant