Skip to content

Commit 6685e1a

Browse files
committed
update NumPy ndarray and JaxArray operations
1 parent 8919787 commit 6685e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brainpy/math/jaxarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def __getitem__(self, index):
183183
if isinstance(index, slice) and (index == _all_slice):
184184
return self.value
185185
elif isinstance(index, tuple):
186-
index = tuple(_check_input_array(x) for x in index)
186+
index = tuple((x.value if isinstance(x, JaxArray) else x) for x in index)
187187
elif isinstance(index, JaxArray):
188188
index = index.value
189189
return self.value[index]

0 commit comments

Comments
 (0)