Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Add the option of using add_field_info inside map #4

Merged
merged 2 commits into from
Nov 2, 2021

Conversation

thomaspinder
Copy link
Contributor

This PR addresses the comments made in #2 . An additional argument is created within map to allow for a field_info boolean flag to passed. When true, jax.tree_map is carried out under the with add_field_info(): context manager.

Tests have been added to test for correct function application on classes contain Trees with mixed kind types.

A brief section has been added to the documentation to reflect the above changes.

@cgarciae
Copy link
Owner

cgarciae commented Nov 2, 2021

Looks good! Thanks a lot @thomaspinder :)

@cgarciae cgarciae merged commit 9a49c4a into cgarciae:master Nov 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants