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

Revert "Add PytreeRef + ref_field" #6

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions simple_pytree/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
__version__ = "0.1.5"

from .pytree import Pytree, field, static_field
from .ref import (
PytreeRef,
Ref,
RefField,
clone_references,
cross_barrier,
incremented_ref,
ref_field,
)
38 changes: 0 additions & 38 deletions simple_pytree/ids.py

This file was deleted.

246 changes: 0 additions & 246 deletions simple_pytree/ref.py

This file was deleted.

26 changes: 0 additions & 26 deletions simple_pytree/tracers.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_pytree.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def __init__(self, y) -> None:
self.x = 2
self.y = y

pytree: Foo = Foo(y=3)
pytree = Foo(y=3)

leaves = jax.tree_util.tree_leaves(pytree)
assert leaves == [3]
Expand Down
Loading