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

C++ tree with path API #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

C++ tree with path API #368

wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Nov 18, 2024

C++ tree with path API

  • Make tree_util.tree_flatten_with_path and tree_map_with_path APIs to be C++-based, to speed up the pytree flattening.

  • Moves all the key classes down to C++ level, while keeping the APIs unchanged.

    • Known small caveats: they are no longer Python dataclasses, and pattern matching might make pytype unhappy.
  • Registered defaultdict and ordereddict via the keypath API now.

@copybara-service copybara-service bot force-pushed the test_694219933 branch 11 times, most recently from 188cd36 to 4b6e763 Compare November 21, 2024 22:42
* Make tree_util.tree_flatten_with_path and tree_map_with_path APIs to be C++-based, to speed up the pytree flattening.

* Moves all the key classes down to C++ level, while keeping the APIs unchanged.
  * Known small caveats: they are no longer Python dataclasses, and pattern matching might make pytype unhappy.

* Registered defaultdict and ordereddict via the keypath API now.

PiperOrigin-RevId: 694219933
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