Closed ASEM000 closed 1 year ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Patch coverage: 91.06
% and project coverage change: -0.29
:warning:
Comparison is base (
124f5e6
) 97.54% compared to head (32c56bf
) 97.25%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
1) Add
tree_mask
,tree_unmask
to freeze/unfreeze tree leaves based on a callable/boolean pytree mask. defaults to masking non-inexact types by frozen wrapper.Example: Pass non-
jax
types throughjax
transformation without error.2) User-provided
re.Pattern
is used to match keys with regex pattern instead of usingRegexKey
Example:
3) Support extending match keys by adding abstract base class
BaseKey
. check docstring for example4) Support multi-index by any acceptable form. e.g. boolean pytree, key, int, or
BaseKey
instanceExample:
5) add
scan
toAtIndexer
to carry a state while applying a function.Example: