Skip to content

Commit 0dffef2

Browse files
committed
Fixup Potential solution 2 Custom pytree init
1 parent 1160b89 commit 0dffef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/custom_pytrees.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class MyTree:
260260
def tree_unflatten(aux_data, children):
261261
del aux_data # Unused in this class.
262262
obj = object.__new__(MyTree)
263-
obj.a = a
263+
obj.a = children[0]
264264
return obj
265265
```
266266

0 commit comments

Comments
 (0)