Skip to content

Commit de996d5

Browse files
committed
fix Array transform bug
1 parent 6735498 commit de996d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

brainpy/_src/math/ndarray.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,12 +1655,11 @@ def update(self, value):
16551655

16561656
def _jaxarray_unflatten(aux_data, flat_contents):
16571657
r = Array(*flat_contents)
1658-
r._transform_context = aux_data[0]
16591658
return r
16601659

16611660

16621661
register_pytree_node(Array,
1663-
lambda t: ((t.value,), (t._transform_context,)),
1662+
lambda t: ((t.value,), None),
16641663
_jaxarray_unflatten)
16651664

16661665
register_pytree_node(Variable,

0 commit comments

Comments
 (0)