We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8919787 commit 6685e1aCopy full SHA for 6685e1a
brainpy/math/jaxarray.py
@@ -183,7 +183,7 @@ def __getitem__(self, index):
183
if isinstance(index, slice) and (index == _all_slice):
184
return self.value
185
elif isinstance(index, tuple):
186
- index = tuple(_check_input_array(x) for x in index)
+ index = tuple((x.value if isinstance(x, JaxArray) else x) for x in index)
187
elif isinstance(index, JaxArray):
188
index = index.value
189
return self.value[index]
0 commit comments